Advantage and Disadvantage of different kind of magento backend cache mechanism

Below are the list of few type of cache that is mainly used with magento website

File System (Var/cache) Cache: This is the default cache available with magento itself . By this magento stores the cache data under Var/cache folder. As per previous article magento created different kind of tag group and associate cache data into that tag group.

Advantage of File System Cache:
its by default so doesn’t need to install anything
Disadvantage of File System Cache:
Because it uses cache data in file system then if site has huge traffice or huge data for which it require huge cache data to be stored into file then it will make the system slower

APC (Alternate PHP Cache) Cache
This is a free,open source and robust extension comes with PHP itself just you need to enable that from php.ini file.
Advantage of APC Cache:
its very fast cache backend
your PHP script execution will start optimized and run more smoother as it stores cache for PHP script as well.
Disadvantage of APC Cache:
it doesn’t support tagging so it consume more memory and slow  during writing and managing data into file system

Memcached Cache:
Its high performance distributed memory object system. The major concern of this cache mechanism is to create a complete backup of your dynamic website by which you can reduce the database load are request processing every time. In this mechanism if any user has already  made similar query from database then result will got cached and next time if same request comes then
data send directly from cache only and not needed to send for database query next time or so.
Advantage of Memcached
A very fast cache backend
Disadvantage of Memcached:
similarily APC memcache also doesn’t support tagging and  it consume more memory and slow  during writing and managing data into file system

Redis Cache:
with this cache mechanism we have a central redis server that stores all of your cache data with fully tag support . This magento cache is highly recommened specially for multi store environment because cache data stored and managed at another dedicated server.

Advantage of Redis Cache:
very fast even with huge traffic and content on site
Disadvantage of Redis Cache
Redis must be installed on server and their libraries should be enabled (magento has their own files for redis with magento extension Cm_Cache_Backend_Redis”  . this is apart from installation )
PHP extension PHP redis must be installed

The following two tabs change content below.

Chandra Shekhar

GCP Architect
Chandra Shekhar Pandey is Google certified Cloud engineer, I am Magento2 Trained developer. Having huge experience in designing cloud solution. I have around 12 years of experience with world enterprise IT companies and fortune 500 clients. During my architecture design I am always caring about high availability, fast performance and resilient system. From the programmer background I have huge experience in LAMP stack as well. Throughout my carrier I have worked on Retail, E-Learning, Video Conferencing and social media domain. The motive of creating cutehits was just to share the knowledge/solutions I get to know during my day to day life so that if possible I can help someone for same problems/solutions. is a really a very effort for sharing knowledge to rest of the world. For any query/suggestion about same you can contact me on below details:- Email: shekharmca2005 at Phone: +91-9560201363

Latest posts by Chandra Shekhar (see all)

You may also like...