Magento extension to add cache keys and tags to blocks that are not cached by default.
- version: 2.0.0
- extension key: Aligent_CacheObserver
- extension on GitHub
Magento extension to add cache keys and tags to blocks that are not cached by default.
Add custom cache observer handlers using the following in your module's config.xml. See CacheObserver's config.xml for further details. Note: If you may use the CacheObserver's model/methods for caching your own blocks if required.
<config>
<cacheObserver>
<!--
The observer id should be a unique key. Note that all observers will be sorted alphabetically by the
observer key.
You may make use of Magento's config.xml merging to overwrite another module's configs if needed.
-->
<module_name_observer_id>
<!--
`model` is a standard model alias to tell the model
-->
<model>module_name/model</model>
<method>myCustomCacheObserverMethod</method>
<classes>
<!-- A list of classes to
<Some_Module_Block_To_Cache/>
</classes>
</module_name_observ_id>
</cacheObserver>
</config>
- PHP >= 5.2.0
- Mage_Core
- ...
- Magento >= 1.4
- Install version ~2.0.0 of the extension via composer.
- Remove the extension via composer.
If you have any issues with this extension, open an issue on GitHub.
Luke Mills http://www.aligent.com.au
OSL-3.0
(c) 2015 Aligent