External cache model setup
- Using Magento’s local.xml file to use the model globally
- Using tmcache.xml file to use model for full page cache only
- Using the Cm_Cache_Backend_File model
Using Magento local.xml file
This method will change the cache model for the whole website. Every block and collection will use these settings.
- Open
app\etc\local.xml
andapp\etc\local.xml.additional
- Copy the settings that you would like to change from
app\etc\local.xml.additional
toapp\etc\local.xml
- Set the cache configuration according to your cache
- Save the file
- Clear the cache in backend panel or delete all contents from the cache directory
Using tmcache.xml file
This method will change the cache model for TM_Cache
module only.
- Rename
app\etc\tmcache.xml.sample
toapp\etc\tmcache.xml
- Set the cache configuration according to your cache
- Save the file
- Clear the cache in backend panel or delete all contents from the cache directory
Using the Cm_Cache_Backend_File
Much improved replacement for Zend_Cache_Backend_File by Colin Mollenhour
- Copy the File.php
to
app/code/community/Cm/Cache/Backend/File.php
- Open
app/etc/tmcache.xml
and changeglobal/tmcache/backend
entry toCm_Cache_Backend_File
- Clear the cache in backend panel or delete all contents of the cache directory