• Resolved peterkueger

    (@peterkueger)


    Is there a way to trigger a page cache prime manual from PHP code?

    I would like to have a simple function call inside w3-total-cache-api.php or something like that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @peterkueger

    Thank you for your inquiry and I am happy to assist you with this.
    YOu can use wp-cli for this, so, instead of calling wp cron via crontab – you should call it directly via
    wp w3-total-cache pgcache_prime
    This way you can also track the output which pages / sitemap positions are primed by script.
    Thanks!

    Thread Starter peterkueger

    (@peterkueger)

    Hello @vmarko,

    I take you answer as a confirmation, that there is no way to prime the cache via PHP directly.

    Ok, I agree with you, my usage of the word “manually” was bad, since I do not want to initiate the prime manually, I would like to initiate it automatically, from my own PHP code. Sorry about this.

    In love.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page Cache Prime manual triggered?’ is closed to new replies.