Hello @dwc_user
I am sorry about the issue you are experiencing and I am happy to assist you with this.
Have you tried Clearing the cache?
In Performance>Page Cache>Purge Policy, you can select front page, post page, posts page, post-term pages, post-term feeds. Then, after someone buys a product, all categories containing this product will be cleared, also all related attributes. But if you cache search results or filter results, this won’t be cleared.
If the issue persists with these options, you should set up a cronjob on your server and call w3tc_flush_all();
for every x hours to clear the cache manually.
The problem here is that the cache is not cleared after the stock is updated.
I hope this helps!
Thanks!
This would mean that if we receive an order 3 times an hour, all products & categories will get flushed. Means that caching would not really have any benefit.
Costumers having the experience that when a product says it is in stock, they add it to their card and get the message that its out of stock. Isnt there a way to exclude that part? Otherwise caching with W3 and Woocommerce isn’t just beneficial? (I do have the paid version of W3, should this give me more options to avoid such issues?)
Hello @dwc_user
You can use Fragment Caching for this.
Fragment Caching bridges the gap between no caching at all and the “ideal,” full page caching. By extending the WordPress Transient API, W3TC allows developers to bring both horizontal and vertical scale to bear without doing anything differently. Please check out our documentation for more detailed explanation about Fragment Caching
Thanks!