Skip to content
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

Update 1.4.6 sets unlimited lifetime to no cache #38

Closed
pcs-matze opened this issue Apr 13, 2023 · 3 comments
Closed

Update 1.4.6 sets unlimited lifetime to no cache #38

pcs-matze opened this issue Apr 13, 2023 · 3 comments

Comments

@pcs-matze
Copy link

Since Update 1.4.6 there is a change of caching behavior which has effects to Magento Framework.

Steps to reproduce:
Use Cm_Cache_Backend_File::save with no $specificLifetime (= false).
Zend_Cache_Backend::getLifetime (Cm_Cache_Backend_File ~197) returns null, but Update converts null to an int.
Zend_Cache_Backend_File::_expireTime returns $time() + 0, so lifetime is already expired.

In Version 1.4.5 the int Conversion is not there, so $lifetime is still null and Zend_Cache_Backend_File::_expireTime returns 9999999999 which means unlimited lifetime.

There is no update von Zend_Cache_Backend with changend functionality so default functionality with this update to 1.4.6 were changed.

@colinmollenhour
Copy link
Owner

I will revert #35

@colinmollenhour
Copy link
Owner

Thanks for the report, fixed in 1.4.7

@pcs-matze
Copy link
Author

Hi @colinmollenhour
Thanks for fast new update, I've already checked and it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants