I am working on an application with multiple number of modules with cache enabled. Cache initialization is done in application main bootstrap as follows.
$this->bootstrap('cachemanager');
$manager = $this->getPluginResource('cachemanager')->getCacheManager();
$cacheObj = $manager->getCache('database');
Zend_Registry::set('cacheObj', $cacheObj);
Can someone tell me, How do i disable cache for a particular module?
To disable a cache object from fetching or saving to the cache, you can set the option
cachingtofalse.With your object, you could do:
To make this automatic, you can write a controller plugin to do this for you. Here is an example: