ZF-4667: Zend_Cache_Frontend_Action
Description
I think it would be extermely useful to have the abbility to cache actions in the same way as Zend_Cache_Forntend_Page. In init() i would setup cacheable actions, options and if cache found it would inject it directly to response....
I think now I can use Zend_Cache_Frontend_Class, but it's just too complicated to handle all the stuff around - like response segments... Or Zend_Cache_Output, but it still doesn't do the job.
Comments
Posted by Fabien MARTY (fab) on 2008-10-27T11:53:48.000+0000
I don't understand.
Is it something to implement in Zend_Cache or in Zend MVC stuff ?
Posted by Tomáš Fejfar (tomas.fejfar@gmail.com) on 2008-10-27T12:03:40.000+0000
Not sure where it would be the best place form implementation. My point is, that there is no easy way of chaching one specific Controller and/or some of his Actions. You can do it via URL or via caching the class, but no easy "one array config" solution.
I think of something like
Zend_Cache::registerControllerCache($array); It would setup the cache, save it in Registry and then use it in the dispatching process to find whether the action needs to be regenerated or not. Am I clear?
Posted by Tomáš Fejfar (tomas.fejfar@gmail.com) on 2008-10-29T09:30:57.000+0000
I'll try to write the code I'd like to use:
Does this help? Is there any way to do this this easily with current Zend_Cache components?
Posted by Fabien MARTY (fab) on 2009-07-17T11:03:32.000+0000
change Assignee because I'm inactive now
Posted by Adam Lundrigan (adamlundrigan) on 2012-05-29T14:06:02.000+0000
There is an action helper provided for this purpose: {{Zend_Controller_Action_Helper_Cache}}