ZF-11572: Problem with Zend_Paginator and Cache

Issue Type: Bug Created: 2011-07-18T13:38:37.000+0000 Last Updated: 2011-07-18T13:38:37.000+0000 Status: Open Fix version(s): Reporter: Mariusz (crazyseal) Assignee: Jurrien Stutterheim (norm2782) Tags: - Zend_Paginator

Related issues: Attachments:


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

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.