Why do we need Magento caching system and cache in general?

Data caching - is the preservation of a variable in the cache and its subsequent extraction therefrom. In other words cache is a system folder in which a computer records all documents received by the user from the network. When a document is requested again, webpage shows the contents of the cache. Cache is a very useful thing! With the help of it browsers have no need to download from the internet all page elements every time you visit it, but simply to "pull" the elements (such as text or graphics) that have changed. In simple words, that is how cache storage management works. Therefore: 1) Significantly faster loading of already visited pages. 2) Reduction of your traffic. So we need cache to increase usability and make our website faster.

Why disable Magento cache?

The first and the most obvious reason to disable Magento cache is having problems with caching. Another - is  dynamic caching which elements should not be cached, or block that describes this element is not properly configured. Disable block cache or disable image cache where it is appropriate. magento cache - system

Magento Cache Management

You can find cache configuration in Magento Admin panel in System -> Cache Management. There you find how to deal with cache storage management.

Here is what you can do in this grid with Magento cache:

magento cache - grid

  • enable or disable all or selected type of cache.
  • Flush Magento Cache - this button helps to remove all the items in the default cache.
  • Flush Cache Storage is an option that helps to remove all items in Magento cache quickly. Magento delete cache: when you pull this button you delete all the content of the cache folder in your server.

Magento Cache types

magento cache - grid only Configuration When you enable this type, you work with all the modules or custom configuration that are saved in your database. Layouts Layout in Magento is set of XML tags, that collects the page from all the blocks. Blocks Generally HTML output every Magento block when you load a webpage. This cache type included logic that helps to collect all the blocks together without conflict between them. EAV types and attributes EAV (entity-attribute-value model) requires configuration to be loaded from database. For example, you want to add one attribute to your customer - his shoe size, EAV allows not to overload the grid values for all users (default value is  0), but it loads only one value for a custom client. Translations Default module or theme can have it’s own translation file, we cache it to avoid wasting time on recompilation. Collections Data If you enable this type of cache, all the objects in Magento can be cached according to specific id logic for each collection. (In few words - you can enable or disable caching for custom Magento collection). Web Services Configuration api Web Services API Is a software interface that controls a web-service - your server. You can cache configurations for your services to make loading faster.

Additional Cache Management

magento cache - additional Flush catalog Images Cache. This feature helps to remove all automatically resized images. This can be useful in the case when recently uploaded images are not visible. Flush JavaScript/CSS Cache. This feature helps if you don’t see any changes on the webpage when you change stylesheet or JavaScript. I hope the article was helpful. These Magento cache types are in Magento Community, the Enterprise edition has additional features.