• Hi,
    I noticed that in WooCommerce, when a product switches from available to backorder after a purchase, the information is not updated with the active cache. Can I exclude the availability of the product from the cache?
    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Emre Vona

    (@emrevona)

    but the cache of product is deleted after ordering. isn’t it enough for you?

    1. is any other caching being used? like cdn or something?

    2. does the product availability display correct itself if you refresh the page? (i’m finding that sometimes my wishlist (excluded page) still has to refresh for the correct wishlist products to display

    Plugin Author Emre Vona

    (@emrevona)

    add_action( ‘woocommerce_checkout_order_processed’, array($this, ‘clear_cache_after_woocommerce_checkout_order_processed’), 1, 1);

    I added this line and it clears cache after ordering a product. Probably only v2.0+ supports this function. which version of woocommorce do you use?

    Thread Starter digitos

    (@digitos)

    Thank you all!

    I’m using WooCommerce 3.1.2.

    I’m doing some tests and I’ll update you later.

    thanks!!!!

    Tobia

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude WooCommerce product availability from caching’ is closed to new replies.