ZF-10662: Zend_Cache_Backend_Xcache::clean() does not support splitted Cache correctly

Issue Type: Bug Created: 2010-11-09T09:02:27.000+0000 Last Updated: 2010-11-15T08:33:05.000+0000 Status: Closed Fix version(s): - 1.11.1 (30/Nov/10)

Reporter: Simon Ihmig (simonhh) Assignee: Marc Bennewitz (private) (mabe) Tags: - Zend_Cache

Related issues: Attachments:


The clean method only cleans the variable cache #0, as you can see: xcache_clear_cache(XC_TYPE_VAR, 0);

However in a "SplittedCache" Configuration, which you get by setting xcache.var_count to something greater than 0, and which is recommended on mutli-cpu machines (see, the other caches (>0) are not cleaned, and thus may contain stale data.

Fix is pretty easy, replace the mentioned line with:

for ($i=0;$i<xcache_count(XC_TYPE_VAR);$i++) { xcache_clear_cache(XC_TYPE_VAR, $i); }


Posted by Marc Bennewitz (private) (mabe) on 2010-11-15T08:33:03.000+0000

fixed in r23344 (trunk) and r23345 (1.11 branch)

Thanks !

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

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