ZF-9935: Same cache in Zend_Paginator for different items
Description
In release 1.10.5 the following code in Zend_Paginator was changed:
return md5(serialize($this->getAdapter()) . $this->getItemCountPerPage());
to
return md5(serialize(array(
get_class($this->getAdapter()),
$this->getItemCountPerPage()
)));
This assumes that a Zend_Paginator_Adapter class is used only once in the whole application. I'm using a modified version of the DbSelect adapter so that the adapter is loaded with different Zend_Db_Select objects. But with the current caching implementation, this always leads to the same cache id because only the class name and the item counter are serialized which are the same for all objects.
Comments
Posted by Marco Kaiser (bate) on 2010-06-02T23:08:19.000+0000
Hi,
this has been fixed with r22307. http://framework.zend.com/code/browse/…=
Posted by Nicolas Ruflin (ruflin) on 2010-06-03T05:03:44.000+0000
Ok, I didn't check the actual source code. Thanks for the fix.