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

Magento

Magento Problem Overview


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

enter image description here

Magento Solutions


Solution 1 - Magento

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.

Solution 2 - Magento

Flush Magento Cache

Removes all items in the default Magento cache (var/cache) and the var/full_page cache that have a Magento tag

Flush Cache Storage

Removes all items in the cache. This is the equivalent of deleting the entire contents of the cache folder on the server.If your system uses an alternate cache location, any cached files used by other applications will be removed.

Solution 3 - Magento

As a practical example, if you use magento's cache for your own devices, eg;

$cache = Mage::app()->getCache();
$cache->save("My cached text","cache_name",array("my_cache"),60*60*24);
echo $cache->load("cache_name");

You will need to use flush cache storage to clear this if you make an update.

In my case it's for a dynamically generated 3 level off canvas menu.

Solution 4 - Magento

Please find the difference between “Flush Magento Cache” and “Flush Cache Storage” below:

Flush Cache Storage: This function basically clears out the entire cache, all cache tags. This calls the “flush()” function on “core/cache” model.

Flush Magento Cache: This function clears cache tags “MAGE” and “CONFIG”. This class the “clean()” function in “core/cache” model.

Solution 5 - Magento

Magento Cache: Remove all items in the default Magento cache (var/cache).According to its associated Magento tag.

Flush Cache Storage: Remove all items from the cache regardless Magento tag. If you used another location used by other application will be removed in this process.

Solution 6 - Magento

Here is the answer of your query:

Flush Magento Cache When you perform this action, the contents having Magento tag in var/cache and var/full_page_cache are removed.

Flush Cache Storage Well, it removed all contents of cache. In case you are using alternate cache location or application such as Varnish Cache which is a web application accelerator also known as a caching HTTP reverse proxy. Then it will remove cache from there too.

Solution 7 - Magento

You have to flush cache storage if you modify the columns of a table (add or remove column) because magento executes a mysql DESCRIBE query and then saves the result in cache. This cache is not cleared if you only click on "Flush Magento Cache" button.

Solution 8 - Magento

Typically, cache:clean deletes all enabled cache related to magento whereas cache:flush deletes the whole cache storage, whether its magento cache or any third party cache (whether enabled or disabled)

Solution 9 - Magento

Flush Magento Cache It's used to remove cache generated by default magento var/cache and var/full_page.

Flush Cache Storage It's used to remove all types of cache(Magento cache and cache created by other external providers.

Solution 10 - Magento

Magento Cache: Remove all items in the default Magento cache (var/cache).According to its associated Magento tag.

Flush Cache Storage: Remove all items from the cache regardless Magento tag. If you used another location used by other application will be removed in this process.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAnthonyView Question on Stackoverflow
Solution 1 - MagentoclockworkgeekView Answer on Stackoverflow
Solution 2 - MagentoSIBHI SView Answer on Stackoverflow
Solution 3 - MagentoMattView Answer on Stackoverflow
Solution 4 - MagentoAbhinav Kumar SinghView Answer on Stackoverflow
Solution 5 - MagentoNangyial AhmadView Answer on Stackoverflow
Solution 6 - MagentoManish JoyView Answer on Stackoverflow
Solution 7 - MagentomossaabView Answer on Stackoverflow
Solution 8 - MagentoManashvi BirlaView Answer on Stackoverflow
Solution 9 - MagentoMagento DevView Answer on Stackoverflow
Solution 10 - MagentoSreenath NRView Answer on Stackoverflow