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 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:
- 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
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