ZF-11794: Zend_Controller_Action_Helper_Cache does not supports tags anymore

Issue Type: Bug Created: 2011-10-03T16:09:14.000+0000 Last Updated: 2011-10-08T07:11:45.000+0000 Status: Open Fix version(s): Reporter: Jérôme Audo (arche-san) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Controller

Related issues: Attachments:


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 :

<pre class="highlight">

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);

<pre class="highlight">
But the definition of the method start() is different into the Zend_Cache_Frontend_Page :

public function start($id = false, $doNotDie = false)

<pre class="highlight">

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.


Posted by Thomas Weidner (thomas) on 2011-10-08T07:08:13.000+0000

Assigned component to issue

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.