• Hello,
    I am importing and updading products via API from a .net app at specific times every day. The WP super cache plugin deletes all cache when a post is published or updated, if I have checked the option. Does it mean that the customers will see updated price in the frontend even if they are not logged in?
    Also, the .net app sends scheduled sales and once the sale ends, for almost a whole day the sale price becomes regular and the sale price is removed. When I run the cron woocommerce_scheduled_sales the price is fixed, but only for logged in users. When I clear the cache manually, from the plugin settings, everything is good even for users that are not logged in. So, in the settings, I’ve set it, under clock, to run just five minutes after the scheduled sales cron. My question is, will this fix the frontend or should I make a cron to delete all files in the cache folder, on the server, at the specific time? Because I am not sure which cache the cron will clear.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • You’re probably better off writing your own job to clear the cache to make sure it is cleared at that time, or you can hook on to something that runs when the price changes.
    Use the function wp_cache_clear_cache() to clear the cache.

Viewing 1 replies (of 1 total)
  • The topic ‘Delete all cache with cron?’ is closed to new replies.