When we change general product info such as name, price, quantity, it takes more than 5 mins to reflect the change on front end. Is this because of Varnish Cache function? How can we reflect the latest update immediately after we save the product?
Hello @makoto_matsumot
You may try one of the below options:
sudo php bin/magento cache:flush
Also, check if the cron job is running properly or not. Try to run php bin/magento indexer:reindex command and check its effect instantly. If it does, then set the cron job.
You may refer https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-cron.html
Hope one of the above methods helps you with the issue.
Hello @makoto_matsumot
I agree with @Meetanshi comment related to Varnish cache, but you can also check the Indexing Mode.
In Magento 2, there are 2 indexing modes:
Update on Save and
Update by Schedule
You can configure each mode under Tools -> System -> Index Management.
There are some advantages and disadvantages of Partial Indexing.
The main advantage of the Update on Save mode is that it lets you index data upon saving the document. In other words, once you save a product in a category it becomes instantly available on the store front with all the changes that you have applied. However, the main disadvantage is that it incredibly increases the time for each operation to complete. That is why, to speed up the process there has been introduced the Update by Schedule mode.
This feature lets you index data in the background so there is no delay when you try to save any document. Everything is performed asynchronously. The only minus of this method is that it may really take a while until the cron job starts indexing.