Support » Plugin: W3 Total Cache » Purge W3TC after cPanel Cron job

  • Resolved temporalnaut

    (@temporalnaut)


    Article scheduling stopped working for me and wordpress listed a Missed Shedule error, so I turned off WordPress Cron jobs via wp-config.php and created a Cron job on the server via cPanel. It works, but now the W3TC does not know that the scheduled article has been published and will not clear the cache after its publication, which means that it will not be displayed immediately to the unlogged users (before I used WordPress Cron job and it worked ok, W3TC deleted the cache and the article was displayed immediately).
    Please do you have a solution? Run clearing cache at the exact time, or add another task to cPanel Cron jobs? thank you

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Front page Purge policy was disabled.

    Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello @temporalnaut

    Thank you for the information!

    Now I noticed that it doesn’t work again, and I had to use button “Purge all caches”, because the new article was not visible to non-logged in users. What can it be?
    Purge policy options that I have enabled:
    Front page
    Posts page
    Post page
    Blog feed

    Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello @temporalnaut

    In cases when cron job is used to schedule articles W3 total Cache cannot recognize this.
    Creating a custom Cron-job to clear the cache on scheduled time is an option and call w3tc_flush_url($url) or w3tc_flush_all();
    You can also use wp-cli and call:
    wp w3-total-cache flush all

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Purge W3TC after cPanel Cron job’ is closed to new replies.