• Resolved cskaiser

    (@cskaiser)


    Hello,

    Is it possible to delete the page cache of the homepage every 30 minutes using a cron task, but only delete all other pages once a day?

    If so, what does this command look like and how can I set this up in WordPress?

    Thanks & best regards
    Christian

    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 @cskaiser

    Thank you for reaching out and I am happy to help!
    Well, that is a complex setting. There is no such setting in the W3 Total Cache. Let me dig around a bit and try to figure out if that type of purge is possible manually and programmatically

    Thanks!

    Thread Starter cskaiser

    (@cskaiser)

    Hello Marko,

    Thank you very much for your feedback! It would be great if this could be done via script or similar.

    Best regards
    Christian

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @cskaiser

    Thank you for your patience.
    I’ve checked this and the only otpion to do this is to create a custom cron job on your server which will then call wp-cli to flush the homepage in the specific time and another to flush posts
    For example call wp w3-total-cache flush [–post_id=] if the home page has ID or wp w3-total-cache flush[–permalink=] to flush a specific permalink and set this to 30 mins

    ANd for all other pages you can call wp w3-total-cache flush posts every 24 hrs for example

    I hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.