Support » Plugin: W3 Total Cache » Stock issues due cache

  • Resolved dwc_user

    (@dwc_user)


    Hi there,

    So i enabled pagecache, fragment cache both running on Redis (locally).
    Our webshop has the issue at this moment that when a product is set back in stock from out of stock and the W3 cached the page when it was out of stock, it does not update that status. Is there something i should add in the settings of W3?

    Enabled =
    CDN (amazon) & fullsite delivery (cloudflare)
    Pagecache
    Browsercache
    Fragment cache

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Marko Vasiljevic

    (@vmarko)

    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!

    Thread Starter dwc_user

    (@dwc_user)

    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?)

    Plugin Support Marko Vasiljevic

    (@vmarko)

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stock issues due cache’ is closed to new replies.