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
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
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
Latest posts by Chandra Shekhar (see all)
- Best practices for micro service design - January 23, 2022
- Spring Boot - January 23, 2022
- Java - January 23, 2022