Skip to content

[BUG]: Phalcon v5.0.2 + PHP 8.1 - Model caching error #16131

Closed
@niden

Description

@niden

Discussed in #16130

Originally posted by Alistar84 September 29, 2022
Hello everybody,
I have a problem with model caching.

In v4 all my models extend a class that implements a force cache system similar to this one https://docs.phalcon.io/5.0/en/db-models-cache#forcing-cache

Now, in v5, if I run a find or findFirst that is already cached, I've got this error:
Fatal error: Uncaught TypeError: unserialize(): Argument #1 ($data) must be of type string, array given.

How can I solve?

Metadata

Metadata

Assignees

Labels

5.0The issues we want to solve in the 5.0 releasebugA bug report

Type

Projects

Status

Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions