-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug (3.0.1) : Phalcon cache with backend memory #12186
Comments
@sergeyklay Isn't this because php is trying to unserialize not serialized content ? https://github.com/phalcon/cphalcon/blob/master/phalcon/cache/backend/memory.zep#L110 Fix is to check here if data is not numeric https://github.com/phalcon/cphalcon/blob/master/phalcon/cache/frontend/data.zep#L137 if it is just return data. |
@HanXHX
|
It works now. Do you have a release date for 3.0.2? |
Have you tried with another cache adapter, i.e. libmemcached? |
@stamster this is because not cache backend adapter. It's because frontend data, it's already fixed. |
Sure, I'm curious whenever this frontend adapter would work: |
Yes, it's not a problem with json, this is only because of data. Just backend adapters where saving not serialized numeric values, but frontend data was trying to unserialize them anyway. Now it's fixed. |
Expected and Actual Behavior
Since Phalcon 3.0.1, I have an issue with backend cache memory. It works well on 3.0.0.
Test file:
With Phalcon 3.0.0 (OK no problem).
With Phalcon 3.0.1
Details
The text was updated successfully, but these errors were encountered: