Magento makes this very easy for you, in fact, just a few lines of code in your global config & hellip;
<global> <cache> <types> <namespace_module module="namespace_module" translate="label description"> <label>Your modules cache label</label> <description>Description of your modules cache</description> <tags>YOUR_MODULES_CACHE_TAGS</tags> </namespace_module> </types> </cache> </global>
The logic to check if your cache is active or not will follow these lines: & hellip;
$cacheGroup = 'namespace_module'; $useCache = Mage::app()->useCache($cacheGroup); if (true === $useCache) { // Cache is active } else { // Cache is not active }
Drew hunter
source share