Issue

ZF-7972: Zend_Cache_Backend_TwoLevels auto_refresh_fast_cache off and priority lower than 10 causes inconsistencies

Issue Type: Improvement Created: 2009-09-29T05:39:12.000+0000 Last Updated: 2012-11-20T20:52:40.000+0000 Status: Closed Fix version(s): Reporter: William Vicary (willsemto) Assignee: None Tags: - Zend_Cache

Related issues: - ZF-8431

Attachments:

Description

Basically whenever auto_refresh_fast_cache is turned off (which is another issue in its own right, turned on its VERY resource heavy!) and having a priority lower than 10 it causes the fast cache to expire a good while before the slow cache.

Using the default settings and turning auto_refresh_fast_cache off and a timeout of 86400 secs:

APC: 28800 secs timeout File: 86400 secs timeout

And now due to no auto_refresh_fast_cache this will not update the APC cache timeout once it expires, and for 2/3rds of the day the slow file cache will be used over the APC one!

I propose either: a) Updating the TwoLevels::save() to set the same timeout for both APC or File while auto_refresh_fast_cache= false b) Updating the TwoLevels::load() to attempt to update the fast cache when reading from the slow cache, this could still be inefficient however due if the fast cache shoudln't be saved it'll try to save to the fast cache on every ->load() that involves the slow cache, which is far from ideal (but still better than it is currently) could maybe do a 1 in X like you do currently for the "stats_update_factor" setting

Comments

Posted by Rob Allen (rob) on 2012-11-20T20:52:40.000+0000

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2021 by Zend by Perforce. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts