• Resolved potatotomato

    (@potatotomato)


    At the end of the day. I set my stock to 0 for all my products.

    Then the next day I set product’s stock to 50 for my products.

    I’m able to see the changes on “my computer” and when I log out of as an administrator. and incognito. It all seems to work and I do a few test orders.

    But when my Customers are trying to buy something. It says out of stock.

    At the server level I restart my server(Ubuntu – Lamp) and this fixes the issue temporary.

    Is there a way to clear the cache from the wordpress admin.

    I’m not sure which plugin is doing the caching.

    Current active plugins
    WooCommerce
    WooCommerce Customizer
    WooCommerce Shipping & Tax
    Jetpack by WordPress.com (required by woocommerce shipping tax)
    Advanced Custom Fields

    For the Jetpack

    I’ve have only 2 settings turn on.

    Brute force attack protection (ON)

    Enabled site accelerator
    Speed Up Image load times (ON)
    Speed up static file load times (OFF)

    • This topic was modified 3 years, 11 months ago by potatotomato.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @potatotomato,

    Thanks for reaching out on this! It definitely sounds like you have some aggressive caching going on on your site.

    At the server level I restart my server(Ubuntu – Lamp) and this fixes the issue temporary.

    This leads me to believe it’s possible the caching is happening on the server side, or somewhere outside of WooCommerce. By default, WooCommerce and WordPress do not cache inventory in this way.

    As a next step, could you please send us a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it here in your response.

    We look forward to hearing back from you on this!

    Thread Starter potatotomato

    (@potatotomato)

    Thanks for you reply, my brain just click after reading your hint.

    I was migrating the website to another server. There was a lot of _transient_ cache saved in the database. I’ve cleared it by using a delete query and it seem to be ok now.

    For Woocommerce > Status > tools

    View post on imgur.com

    When these buttons are click do these only clear woocommerce transients?

    _transient_wc (I’m not sure of all the prefix woocommerce does)

    As of an off-topic question. I’ve removed a file called /wp-content/object-cache.php Does woocommerce uses object-cache.php file of some sort by default?

    • This reply was modified 3 years, 11 months ago by potatotomato.

    Good to hear back from you on this, @potatotomato!

    In WooCommerce > Status > Tools, the option to clear WooCommerce Transients will clear only transients that belong to WooCommerce.

    The second option, Expired Transients, will clear all expired transients in your WordPress installation, not only WooCommerce transients.

    As of an off-topic question. I’ve removed a file called /wp-content/object-cache.php Does woocommerce uses object-cache.php file of some sort by default?

    No, WooCommerce does not use object caching by default. The object-cache.php file you found in your wp-content folder does not belong to WooCommerce. There are a few plugins that might have added that file to your wp-content file. Generally, these are performance plugins that improve site performance via caching.

    Let us know if there are any other questions we can help with!

    Hi @potatotomato,

    I hope the server side clearing worked as a permanent fix. We have not heard back from you for a bit, so I am going to close this thread. If you still have the issue feel free to reply back and let us know, and the thread will re-open. If there is a new issue, please open a new thread.

    Otherwise do have a great day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Variable Products being Cache. How to Clear or disabled’ is closed to new replies.