ZF-11794: Zend_Controller_Action_Helper_Cache does not supports tags anymore
Description
Summary : Zend_Controller_Action_Helper_Cache does not supports tags anymore
When I use the action helper Zend_Controller_Action_Helper_Cache in a controller with a tag like the following line :
The helper uses the class Zend_Cache_Frontend_Page to store my page into my favorite backend (File, Apc, Memcached ...).
But when i reload my browser I have two pages, the cached page and the non-cached page.
Indeed in the line 188 into the Zend_Controller_Action_Helper_Cache class, we can find this :
$this->getCache(Zend_Cache_Manager::PAGECACHE) ->start($this->_encodeCacheId($reqUri), $tags, $extension);
But the definition of the method start() is different into the Zend_Cache_Frontend_Page :
public function start($id = false, $doNotDie = false)
So in the line 284 into the Zend_Cache_Frontend_Page PHP considers that the $doNotDie parameter return true (in fact it is an array of tags) and do not die the rest of the code.
if ($doNotDie) { return true; } die();```
Moreover the cache does not store the tags to retrieve them later.
Comments
Posted by Thomas Weidner (thomas) on 2011-10-08T07:08:13.000+0000
Assigned component to issue