Wondering how to perform magento 2 clear cache and reindex? Our Magento Support team is here to lend a hand with your queries and issues.
Magento 2 clear cache and reindex
Managing cache improves the performance of your Magento 2 store.
It is a good practice to flush the cache after installing a new extension or upgrading to the new version of Magento.
Reindexing is required whenever any item or data is changed.
Reindexing helps to speed up Magento store performance and reduces the time customers have to wait.
Today, let us see the steps followed by our support techs to reindex
- Firstly, need to SSH into your server using an application like Terminal or Putty.
ssh -i /pathtokey/keyname.pem username@52.14.11.12
- Once in, modify the user through this command:
sudo su –
- This will give you the required permissions to run the commands below.
- Navigate to the web root of your Magento installation. Typically the path to your Magento installation will look similar to this:
/home/nginx/domains/yourdomainnamehere/pub/public/
- You can use the cd (change directory) command to navigate to your Magento installation location.
The following commands below will enable you to flush your cache, flush your cache storage and reindex your Magento 2 database.
Run this commands to flush your Magento cache storage:
/usr/local/bin/php bin/magento cache:clean
Run this command to flush your Magento cache:
/usr/local/bin/php bin/magento cache:flush
Run this command to reindex your Magento 2 site:
/usr/local/bin/php bin/magento indexer:reindex
[Need assistance with a different issue? Our team is available 24/7.]
Conclusion
In conclusion, our Support Engineers discussed about magento 2 clear cache and reindex. Furthermore, we went through different causes and solutions for this specific error.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
0 Comments