• Resolved edelcambre

    (@edelcambre)


    Hello,
    I have caching enabled on my website, with the preload feature also activated. The preload is set to run every day, but I would need it to run at a specific time (just after midnight).
    I saw it was possible to execute WP_Optimize()->get_page_cache()->purge(); from a theme or plugin, which I could do using CRON. Is there a similar method to run preload ?
    Thanks!
    Etienne

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Venkat Raj

    (@webulous)

    @edelcambre There is no such option at this moment, but If you scheduled daily preload at the specific time you want, it will be repeated. i.e. If you activate scheduled cache preload, select daily as schedule type at 12:01 am then it will be repeated every day at that time.

    Thread Starter edelcambre

    (@edelcambre)

    Thank you for your answer. Ok, I will do that.
    And if I need the cache to be updated during the day, I can purge the cache and visit the page I need to get cached again, is that it ?

    Plugin Contributor Venkat Raj

    (@webulous)

    > if I need the cache to be updated during the day, I can purge the cache and visit the page I need to get cached again, is that it ?

    Yes. Out of curiosity why do you want to do that manually?

    Because if you update a post/page or someone made comment, that particular post will automatically be purged and cached when someone visited next time.

    Thread Starter edelcambre

    (@edelcambre)

    Ok perfect.
    It’s because it is a specific page which is updated when some movies or sessions are updated : https://www.toulourama.fr
    Especifically now because the website is still under development I sometimes have to purge the cache

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Schedule preload at a specific time’ is closed to new replies.