• Resolved diamantweb

    (@diamantweb)


    Hi,
    how to exlude cached prices in WooCommercу? Since prices are hight dynamic and impacted by many price rules I would like to exlude them from caching. Can you help me there?

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

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

    (@vmarko)

    Hello @diamantweb

    Thank you for your inquiry and I am happy to assist you with this.
    Since the page is cached and the prices should be dynamic, the only thing that you can try to do is to exclude the entire page from being cached.
    You can also try to set a manual cron job on your server which will call $w3_plugin_totalcache->flush_all(); on a specific time interval.
    Alternatively, you can try Fragment Caching that is available after upgrading to Pro.
    Thanks!

    Thread Starter diamantweb

    (@diamantweb)

    HI Marko,
    thx for a quick responce. Additionally can I set a cron rule to cache all pages once flush is exucuted? If yes, which cron rule should be set on the server?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @diamantweb

    Thank you for your question.
    You cannot cache all pages at once but you can enable Cache Preload in Performance>Page Cache.
    This will ensure that all the pages are cached without being visited.
    It’s advisable to disable wp-cron and use server cron to trigger preloading for example every 10 mins.
    Something like */10 * * * * wget -q -O - http://www.example.com/ >/dev/null 2>&1
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Product prices gets cached’ is closed to new replies.