RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
How to cache custom data into Magento
const CACHE_TAG_NAMESPACE_MODULE = "YOUR_MODULES_CACHE_TAGS"; $cacheGroup = 'namespace_module'; $useCache = Mage::app()->useCache($cacheGroup); if (true === $useCache) { $cacheId = 'unique_name'; if ($cacheContent = Mage::app()->loadCache($cacheId)) { $html ...
Clean cache by cache ID
Mage::app()->removeCache($cacheId); Flush all Magento cache entries Mage::app()->cleanCache() or: Mage::app()->getCacheInstance()->flush();
Use Redis as a cache backend
Redis configuration: Install redis (2.4+ required) Install phpredis Install the Magento extension Cm_Cache_Backend_Redis (only for Magento 1.7 and below) Edit your app/etc/local.xml: <global> ... <cache> <backend>Cm_Cache_Backend_Redis</backend> <b...
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website