Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between "Flush Magento Cache" and "Flush Cache Storage" in magento's cache management?

Tags:

magento

What is the difference between "Flush Magento Cache" and "Flush Cache Storage" in magento's cache management?

enter image description here

like image 214
Anthony Avatar asked May 10 '11 19:05

Anthony


People also ask

What is flush Magento cache?

Flush Cache StorageRefreshes the cache of all Magento stores, regardless of Commerce tag. All Magento stores sharing the cache storage will have cleared the cache. The cached files used by other applications are removed in the process. It may affect other processes that run the same cache storage.

How many types cache in Magento 2?

With different usages, all 12 types of Magento 2 Cache are effective in improving the speed, making your Store perform better.

Where is Magento cache stored?

Magento 2 cache is in the var/cache directory off the store root with the settings located under System -> Cache Management. Configuration – generally, the system collects configuration info from all module/config.

What is Magento CLI command to get help on cache enable?

To enable all cache using Magento 2 command line, enter the following command: php bin/magento cache:enable. If you want to turn on specific cache types, enter them separated by spaces.


1 Answers

Sometimes the cache location (like /tmp/) or service (like Memcache) is shared with other applications. "Flush Magento Cache" removes only those entries that Magento reliably tracks as its own. "Flush Cache Storage" clears everything but might affect other applications if they're using it.

Normally the location is var/cache/ in Magento's folder so is not shared after all. It is safe to use either button. Sometimes (rarely) entries are not clearly tagged or Magento loses track of them and only the second button has an effect on them. I tend to use the second button when I'm having difficulty tracking down the cause of a problem.

like image 190
clockworkgeek Avatar answered Sep 22 '22 08:09

clockworkgeek