We are updating the product prices every 10min using cron. The prices are pulled from a external API.
We are using the following way to update the price,
$this->updateProductAttribute('price', $productId, $price);
Then we are doing reindex for the updated items,
After the price update, Product detail page showing correct updated price. But the Category page still showing the old price. If I refresh the cache or save the product from admin then category page showing updated price.
Instead of using
updateProductAttribute if I save the product from code then category page works.
Whether it advisable to save 100 of products every 10min programmatically?
Or, Do we have any other way to handle the category page cache issue?