There is no script available in magento 2 back-end you need run the command using cli:
navigate to your magento folder by using the commnad for example:
cd /opt/lampp/htdocs/magento2.0.4
after that run below command to apply reindex to whole store.:
bin/magento indexer:reindex
But what if you want to reindex specific indexer. for that you will need list of the indexer name. You will get the list of indexer using below command.
In root directory run below command,
bin/magento indexer:info
Now you have list of all the indexer available, so you can run command for specific indexer.
To run single reindex command,
bin/magento indexer:reindex indexer_name
or for flush cache:
bin/magento cache:flush
0 Comments