ZF-11572: Problem with Zend_Paginator and Cache


I use new version Zend Framework. 1.11.9 I'm trying to cache paginator data and I still have a problem with cache files. Every time the new cache file is created.

My sample code:

... $skladnia->order('idxmat.nazwa1 ASC'); $adapter = new Zend_Paginator_Adapter_DbSelect($skladnia); $adapter->setRowCount($rowCount);

        $paginator = new Zend_Paginator($adapter);
        $fO = array('lifetime' => 21600, 'automatic_serialization' => true);
        $bO = array('cache_dir' => APPLICATION_PATH . '/../data/cache/');
        $cache = Zend_Cache::factory('Core', 'File', $fO, $bO);



How to resolve the problem?

I checked the stories and that error was solved in version 1.10 (ZF-6989 isue) but in my opinion still exist.

var_dump($paginator->getPageItemCache()); // -> return nothing, null

Regards mario


No comments to display