Cleaning & flushing caches in Magento
Learn how to clean and flush Magento cache with bin/magento cache clean and cache flush commands.
Lesson Content
Once a cache is enabled and entries start to be stored, theyโll eventually reach a point where those entries become stale.
You can clear out entries related to a specific cache type by running:
bin/magento cache:clean name_of_cacheThis removes all cache entries related to that specific cache type, and just like enabling or disabling a cache, you can specify multiple cache types.
For example, if you want to clear all โlayoutโ entries from the cache, run:
bin/magento cache:clean layoutSometimes cache:clean wonโt completely purge a specific cache....
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.