After July 2021, the 2.3.x release line no longer received quality updates or user guide updates. PHP 7.3 reached end of support in December 2021, and Adobe Commerce 2.3.x reached end of support in September 2022. We strongly recommend upgrading to Adobe Commerce 2.4.x to help maintain PCI compliance.

Cache Management

This site contains archived merchant documentation for a version of Adobe Commerce and Magento Open Source that has reached end-of-support. The documentation available here is intended for historical reference only and is not maintained. The Adobe Commerce Merchant Documentation for current releases is published on the Adobe Experience League.

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.

Save product attribute - update cache message Update Cache Message

The Cache Management page shows the status of each primary cache and its associated tag. The large buttons in the upper-right corner can be used to flush the Magento Cache, or the all-inclusive Cache Storage. At the bottom of the page there are additional buttons to flush the catalog product images cache and JavaScript/CSS cache.

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.

Role resources - cache management Cache Management Role Resources

For technical information, see Magento cache overview in the developer documentation.

Cache management Cache Management

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 Admin and may result in a down site until completed.
  • When reindexing, you do not need to also perform a flush cache.

Access the Cache Management page by doing one of the following:

  • Click the Cache Management link in the message above the workspace.
  • On the Admin sidebar, go to System > Tools > Cache Management.

Refresh Specific Caches

  1. For each cache to be refreshed, select the checkbox at the beginning of the row.

  2. Set Actions to Refresh and click Submit.

Perform Mass Action Refresh

  1. To select a group of caches, set Mass Actions to one of the following:

    • Select All
    • Select Visible
  2. Select the checkbox of each cache to be targeted by the action.

  3. Set Actions to Refresh and click Submit.

Flush the Product Image Cache

  1. Under Additional Cache Management, click Flush Catalog Images Cache to clear pre-generated product image files.

    The Image cache was cleaned message appears at the top of the workspace.

  2. Clear the cache of your browser.

Flush the JavaScript/CSS Cache

  1. Under Additional Cache Management, click Flush JavaScript/CSS Cache to clear any JavaScript and CSS files that have been merged into a single file.

    The The JavaScript/CSS cache has been cleaned message appears at the top of the workspace.

  2. Clear the cache of your browser.

Flush Using the Command Line

Magento provides additional flush cache options using the command line. These options may require developer support to complete. For complete details and command options, see Magento cache overview and Manage the cache in the developer documentation.

Controls

Control Description
Mass Actions Selects the checkbox of multiple caches. Options:
Select All — Selects the checkbox of all caches.
Unselect All — Clears the checkbox of all caches.
Select Visible — Selects the checkbox of all visible caches.
Unselect Visible — Clears the checkbox of all visible caches.
Actions Determines the action to be applied to all selected caches. Options:
Enable — Enables all selected caches.
Disable — Disables all selected caches.
Refresh — Refreshes all selected caches.
Submit Applies the action to all selected caches.

Buttons

Button Description
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 are not reflected in the catalog, try flushing the catalog and refreshing your browser.
Flush JavaScript/CSS Cache Removes the merged copy of JavaScript and CSS files from the cache. If recent changes to the style sheet or JavaScript aren’t reflected in the store, try flushing the JavaScript/CSS cache and refreshing your browser.
Flush Static Files Cache Removes preprocessed view files and static files.

Caches

Cache Description Associated Tag
Configuration Various XML configurations that were collected across modules and merged.
System - config.xml, local.xml
Module - config.xml
CONFIG
Layouts Layout building instructions. LAYOUT_GENERAL_CACHE_TAG
Blocks HTML output Page blocks HTML. BLOCK_HTML
Collections Data Collection data files. COLLECTION_DATA
Reflection Data Clears API interface reflection data, that typically is generated during runtime.  
Database DDL operations Results of DDL queries, such as describing tables or indexes. DB_DDL
Compiled Config Results of code compilation. COMPILED_CONFIG
EAV types and attributes Entity types declaration cache. EAV
Customer Notification Temporary notifications that appear in the user interface.  
Integrations Configuration Integration configuration file. INTEGRATION
Integrations API Configuration Integrations API configuration file. INTEGRATION_API_CONFIG
Page Cache Full page caching. FPC
Translations Translation files. TRANSLATE
Web Services Configuration REST and SOAP configurations, generated WSDL file. WEBSERVICE

Cache Management Role Resources

Resource

Cache Management

  • Clean Cache Actions

    • Flush Cache Storage
    • Flush Magento Cache
  • Cache Type Management

    • Toggle Cache Type
    • Refresh Cache Type
  • Additional Cache Management

    • Catalog Images Cache
    • Flush Js/Css
    • Flush Static Files