Magento 2.1.x Notice: Magento 2.1.18 is the final 2.1.x release. After June 2019, Magento 2.1.x will no longer receive security patches, quality fixes, or documentation updates. To maintain your site's performance, security, and PCIPayment Card Industry: Refers to debit and credit cards and their associated businesses. compliance, upgrade to the latest version of Magento. The Magento User Guide 2.1.x remains available in PDF for Open Source and Commerce.
Magento’s cache management system is an easy way to improve the performance of your site. Whenever a cache needs to be refreshed, a notice appears at the top of the workspace to guide you through the process. Follow the link to Cache Management, and refresh the invalid caches.
After clearing a cache, always refresh your browser to make sure that you can see the most recent files. Clearing the Magento cache does not clear your web browser cache. You may need to clear the browser cache to see updated content.
Access to specific cache maintenance actions can be assigned to users by role, including options to view, toggle, and flush caches. Magento recommends only enabling flush actions to administrator level users. Providing access to all Cache Management features can impact your storefront's performance.
For technical information, see Magento cache overview in the developer documentation.
Best practices for caching
Reindexing and caching have different purposes Magento. Indexes track database information for increased search performance, faster data retrieval for storefronts, and more. Caches save loaded data, images, formats, and the like for increased performance loading and accessing the storefront.
- Always flush the cache after installing extensions/modules. You can install one or more extensions, then flush the cache.
- Flush the cache after installing Magento Commerce. For fresh installs, you should also reindex.
- Flush the cache after upgrading from one version of Open Source or Commerce to another.
- When flushing caches, consider the type of cache and scheduling the flushing during non-peak times. For example, pick a time when few customers may access the site such as late night or early morning. Clearing some cache types during peak times cause result in a high load on the AdminThe password-protected back office of your store where orders, catalog, content, and configurations are managed. and may result in a down site until completed.
- When reindexing, you do not need to also perform a flush cache.
|1.||Do one of the following:|
- Click the Cache Management link in the message above the workspace.
- On the Admin sidebarThe right or left column of a two-column page layout., tap System. Then under Tools, choose Cache Management.
|2.||For each cache to be refreshed, mark the checkbox at the beginning of the row.|
|3.||Set Actions to “Refresh,” and tap Submit .|
|1.||To select a group of caches, set Mass Actions to one of the following:|
- Select All
- Select Visible
|2.||Mark the checkbox of each cache to be targeted by the action.|
|3.||Set Actions to “Refresh,” and tap Submit.|
|2.||Make sure to also clear the cache of your browser.|
Marks the checkbox of multiple caches. Options include:
Marks the checkbox of all caches.
Clears the checkbox of all caches.
Marks the checkbox of all visible caches.
Clears the checkbox of all visible caches.
Determines the action to be applied to all selected caches. Options include:
Enables all selected caches.
Disables all selected caches.
Refreshes all selected caches.
Applies the action to all selected caches.
Flush Magento Cache
Removes all items in the default Magento cache (var/cache), according to their associated Magento tags.
Flush Cache Storage
Removes all items from the cache, regardless of Magento tag. If your system uses an alternate cache location, any cached files used by other applications are removed in the process.
Flush Catalog Images Cache
Removes all automatically resized and watermarked catalog images that are stored at: media/catalog/product/cache.
If recently uploaded images aren't reflected in the catalog, try flushing the catalog and refreshing your browser.
Flush Static Files Cache
Removes preprocessed view files and static files.
Various XML configurations that were collected across modules and merged. Associated Tag:
Layout building instructions.
Blocks HTML output
Page blocks HTML. Associated Tag:
Collection data files. Associated Tag:
Clears API interface reflection data, that is typically generated during runtime.
Database DDL operations
Results of DDL queries, such as describing tables or indexes.
Results of code compilation.
EAV types and attributes
Entity types declaration cache. Associated Tag:
Temporary notifications that appear in the user interface.
Integration configuration file. Associated Tag:
Integrations API Configuration
Integrations API configuration file.
Full page caching. Associated Tag:
Translation files. Associated Tag:
Web Services Configuration
REST and SOAP configurations, generated WSDL file.
Cache Management Role Resources
Clean Cache Actions
Flush Cache Storage
Fluch Magento Cache
Cache Type Management
Toggle Cache Type
Refresh Cache Type
Additional Cache Management
Catalog Images Cache
Flush Static Files