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!
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.
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.
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!
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?
Any idea why the options might be greyed out?
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!
Ah brilliant thank you, and I see it saved the individual sites with the blog id as the file.