SwissUpLabs Logo

External cache model setup

  1. Using Magento’s local.xml file to use the model globally
  2. Using tmcache.xml file to use model for full page cache only
  3. 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.

  1. Open app\etc\local.xml and app\etc\local.xml.additional
  2. Copy the settings that you would like to change from app\etc\local.xml.additional to app\etc\local.xml
  3. Set the cache configuration according to your cache
  4. Save the file
  5. 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.

  1. Rename app\etc\tmcache.xml.sample to app\etc\tmcache.xml
  2. Set the cache configuration according to your cache
  3. Save the file
  4. 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

  1. Copy the File.php to app/code/community/Cm/Cache/Backend/File.php
  2. Open app/etc/tmcache.xml and change global/tmcache/backend entry to Cm_Cache_Backend_File
  3. Clear the cache in backend panel or delete all contents of the cache directory
Edit this Page