caching - Stop zend page cache in the Action -


here problem...

this in bootstrap:

$cache = zend_cache::factory('page','file',$frontendoptions,$backendoptions); $cache->start(); zend_registry::set("cache", $cache); 

i need cancel $cache->start() action. i've tried zend_registry::get('cache')->cancel() doesn't work (actually, it's expected, because caching starts long before action processing).

how can stop caching action?

to understand why need it: in action, have function call model, , if return void, make redirect, page shouldn't cached.

according zf manual (the specific cancel method) quite possible.

because of design issues, in cases (for example when using non http 200 return codes),    need cancel current cache process. introduce particular     frontend, cancel() method. 

and code seems correct except typo cacnel() instead of cancel()


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -