开发者

Zend_View caching (Redis)

开发者 https://www.devze.com 2023-04-11 08:20 出处:网络
Task: During the process of action of Zend Application to achieve next: - for each unique url or any definite url to substitute Zend_View object by data sto开发者_StackOverflow中文版red in the cache (

Task: During the process of action of Zend Application to achieve next: - for each unique url or any definite url to substitute Zend_View object by data sto开发者_StackOverflow中文版red in the cache (Zend_View object ) and not to perform Action - if data in cache is null, then to prerform Action and to set data in cache.

Conditions - Changes mustn't be set in any Zend Controller (Action) - init Action must be performed in any case.

Thank you.


Easiest thing to do is register an action helper and use the preDispatch method to retrieve the cache. If a cache exists, you can set the dispatched flag to skip the action call.

0

精彩评论

暂无评论...
验证码 换一张
取 消