• Resolved stevewolfe555

    (@stevewolfe555)


    Hello,

    How do I prime the cache for a multisite?

    What options are available too me?

    sitemap, cli + command?

    Any help on this would be great P.S did you get anywhere on being about to queue or thread the page cache priming?

    Thanks again

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

    (@vmarko)

    Hello @stevewolfe555

    Thank you for reaching out and I am happy to assist you with this.
    You can prime the cache for individual sites in the multisite by disabling the option “Use single network configuration file for all sites.” in Performance>General settings>Miscalleneous.
    Once this is done, you can use specific settings for each website, in this case, Page Caching, and prime the cache for each site by adding the sitemap of that specific site to Performance>Page Cache>Preload Cache>Sitemap URL:
    Once added and the preload enabled, the cache will be primed for this site. You should repeat the procedure for each sub-site.

    I hope this helps!

    Thanks!

    Thread Starter stevewolfe555

    (@stevewolfe555)

    Yes that helps thank you.

    Any functions I can call to run my priming?

    I.e prime this cache or that cache.

    I did see it looks like you are just calling the http request with a user agent of WordPress.

    If that is the case I can build a tool to thread this.

    Thread Starter stevewolfe555

    (@stevewolfe555)

    Also if I use a separate config for each site where are the config files stored and named?

    As I will need these in the deployment script.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @stevewolfe555

    Thank you for your feedback.
    You can use cli – wp w3-total-cache pgcache_prime
    As for your other question, when configs are separated, they should be stored in the root of the sub-site folder /wp-contnet/w3tc-config/master.php

    Thanks!

    Thread Starter stevewolfe555

    (@stevewolfe555)

    Hi Marko, I have enabled the setting but all the options are greyed out in the network sites.

    All the websites share the same files so how can they all use /wp-contnet/w3tc-config/master.php when we need it separated?

    Thread Starter stevewolfe555

    (@stevewolfe555)

    Any idea why the options might be greyed out?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @stevewolfe555

    Thank you for your feedback.
    In order to change the settings on subsites, the network admin must uncheck the general miscellaneous setting “Use single network configuration file for all sites.” and save the settings. Then go to the subsite dashboard and in the general settings click on the button that says “Use specific settings”. The user can then navigate to the Page Cache settings page to make changes.


    Thanks!

    Thread Starter stevewolfe555

    (@stevewolfe555)

    Ah brilliant thank you, and I see it saved the individual sites with the blog id as the file.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @stevewolfe555

    You are most welcome!

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Prime page cache for multisite’ is closed to new replies.