ZF-9940: Zend_Paginator get the same Cache Data
Description
File: Zend_Paginator.php Method: protected function _getCacheInternalId() on line 1013 protected function _getCacheInternalId() { return md5(serialize(array( get_class($this->getAdapter()), $this->getItemCountPerPage() ))); }
If the getAdapter() return a Zend_Paginator_Adapter_DbSelect object, it will always be 'Zend_Paginator_Adapter_DbSelect'. So $select->where('type = ?', news) and $select->where('type = ?', 'blog') will have the same cache id.
Comments
Posted by Martin Meißner (meisii) on 2010-08-18T05:35:00.000+0000
Assign this issue to Marco Kaiser. This problem can be closed, since the code has now changed. See my last comment on the issue ZF-6989. You can also look in the trunk: [http://framework.zend.com/code/browse/…]
Posted by Ramon Henrique Ornelas (ramon) on 2010-08-20T17:16:12.000+0000
Fixed by ~bate] in revision [r22828.