• Resolved cvladan

    (@cvladan)


    How can I force the start of the cache warming process from PHP code? Specifically, after staging push to production, I do clear the cache in production environment using PHP code, and now I also want to trigger cache warming using PHP. Just like pressing “Start a new Warm-Up” button, but from code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author TMM Technology

    (@tmmtechnology)

    @cvladan Hi!

    I added this logic. Could you try:

    • Start:?\Cache_Warmer\AJAX::start_warm_up( false );
    • Stop:?\Cache_Warmer\AJAX::stop_warm_up( false );

    Prob on ‘init’ event.

    Thread Starter cvladan

    (@cvladan)

    Tried and it’s working! Thanks ??

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