• I have found w3tc_flush_post($post_id) to flush a single page, but I was wondering if this also recreates the cache for the given page or if there is a way to do this programmatically.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter vespino

    (@vespino)

    Found my solution in the following function which seems to also recreate the page (in this case the homepage) when running:

    w3tc_flush_url('/');

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @vespino

    Thank you for reaching out and I am happy to help!
    You can preload the cache using wp-cli also
    wp w3-total-cache pgcache_prime [--start=<start>] [--limit=<limit>]

    Let me know if this helps!

    THanks!

    Thread Starter vespino

    (@vespino)

    But that would reload the entire cache wouldn’t it? I’m only interested in reloading the homepage.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @vespino

    Thank you for your feedback.
    Yes, however, you can set the custom sitemap to only contain homepage

    Thanks!

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