What are the cache directories of Magento 2
.
Just I need to remove those my rm -rf
command without executing Magento cache:flush
command.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityEither u can manually delete folders or using this command
rm -rf var/cache/ generated/code pub/static/frontend pub/static/adminhtml
After that you need to run these commands again , else the css/styles in magento frot-end and back-end won't load
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento setup:di:compile
sudo chmod -R 777 var/ pub/ generated/
So Are you want to remove cache files ? If yes than remove these folders:
/var/cache
/var/page_cache
Simply remove this folders.
You need to remove these directories
<magento_root>/var/cache/*
<magento_root>/var/page_cache/*
<magento_root>/generated/metadata/*
<magento_root>/generated/code/*
for more information please follow this link: https://devdocs.magento.com/guides/v2.3/extension-dev-guide/cache/partial-caching/database-caching.html