Description

Zend_Paginator makes cache ids from spl_object_hash($this), which changes throught HTTP request making Paginator unable to load its data back from cache, and also making it duplicate them in the cache.

$paginaor = new Zend_Paginator::Factory($select1);
and
$paginaor = new Zend_Paginator::Factory($select2);

return the same cache id, even though the results of the 2 selects are different.

Posted by Ionut Dinu (tunder) on 2009-05-28T03:45:32.000+0000

is it possible to cache the total number of items? I noticed that the select that counts the total number of items that need to be paginated is not cached.

Posted by julien PAULI (doctorrock83) on 2009-06-03T14:27:44.000+0000

Fixed in r15883
Warning, could lead to BC breaks with old cache entries as the tagging system has been reviewed and improved. Tests are welcome

Posted by Dane Horak (danehorak) on 2009-06-11T13:17:08.000+0000

When using Zend_Db_Profiler_Fierbug there are a few properties that store microtime values which when serializing the adapter cause it to produce a different hash value each time. Because this hash value is used to identify what cached data to load, Zend_Cache is unable to find any cache associated to this identifier.