• Resolved lukas22

    (@lukas22)


    Hello,
    I need to refresh the page static cache every time a new order appears in the database. Can you help me with that how to set up?
    Thank you.

    • This topic was modified 4 years, 8 months ago by lukas22.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @lukas22,

    Thank you for your inquiry and happy to assist you with this.

    You can call w3tc_flush_url($permalink) for each page and that call should be within an action or filter that is triggered when an order is added to the database. If it’s the woocommerce then you should use the woocommerce_new_order action.
    I hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘A cache that depends on inserting or deleting a table entry in a database’ is closed to new replies.