awsmagento

Use the Magento cache

Enable the cache

Enable all the application cache options in the Magento administration panel, under the “System -> Cache Management” menu.

Flush the cache

NOTE: Flush the cache after configuring Magento with Varnish and SSL.

In order to purge out-of-date items from the cache, you can clean or flush cache types:

  • Cleaning a cache type deletes all items from enabled Magento cache types only. In other words, this option does not affect other processes or applications because it only cleans the cache used by Magento. Disabled cache types are not cleaned.
  • Flushing a cache type purges the cache storage, which might affect other processes applications that are using the same storage.

Flush cache types if you’ve already tried cleaning the cache and you still have unresolved issues.

Flush the cache using the command line

$ sudo magento-cli cache:clean
$ sudo magento-cli cache:flush

For example, to flush all cache types, enter

$ sudo magento-cli cache:flush --all

Flush the cache using the web interface

Flushing all cache types:

  • Open the Administration panel and click on “System-> Tools-> Cache Management”.
  • Select all cache types and “Refresh” action in the drop down box located on the top left margin.
  • Click both buttons “Flush Magento Cache” and “Flush Cache Storage”.

Flushing the cache from the web interface

Disable the cache

TIP: This is recommended only if templates or source files are being changed.

Go to “System -> Tools -> Cache Management”, mark all cache types and select “Disable” in the action box. Click the “Submit” button.

Disable the cache from the web interface

Last modification December 21, 2022