Powered Cache works on WordPress multisite networks with subdomains or subdirectories. You can activate it for the whole network with one shared set of settings, or on individual sites with separate settings. This page explains the difference, who can do what, and how cache clearing behaves on a network.
Available in: Powered Cache (free)
Where to find it: Network Admin → Plugins, and Network Admin → Powered Cache (network activation) or Powered Cache in each site’s admin (per-site activation)
Requires: a network administrator to activate the plugin network-wide.
Choose how to activate #
| Network activation | Per-site activation | |
|---|---|---|
| Settings | One set of settings for every site, in Network Admin → Powered Cache. | Each site has its own settings in its own admin. |
| Who can change settings | Network administrators only. | Administrators of that site. |
| Object cache | Can be configured. | Cannot be configured. See Object cache. |
| Automatic .htaccess configuration | Available on Apache. | Not applied. |
| Best for | Most networks: sites that share a theme and plugins and should behave the same way. | Networks where only some sites should be cached, or where site owners manage their own optimization. |
For most networks, network activation is the better choice. It is simpler to maintain and is the only way to use a persistent object cache.
Set up network activation #
- Go to Network Admin → Plugins, install Powered Cache and click Network Activate.
- Go to Network Admin → Powered Cache.
- Configure the sections as on a single site, then click Save Settings. The settings apply to every site in the network.
- Visit a few sites while logged out and check that pages are cached.
With network activation, individual site administrators do not get a Powered Cache settings menu. They still see a Powered Cache menu in the admin bar to clear their own site’s cache. See Admin bar on a network.
Use per-site activation #
Activate Powered Cache from each site’s Plugins screen. Each site then has its own Powered Cache menu and settings, and its own cache configuration file. On multisite, Powered Cache always keeps WP_CACHE and the advanced-cache.php drop-in in place, because they are shared by all sites. Turning off Page Cache on one site only stops caching for that site.
Settings that affect the whole installation stay out of reach of site administrators: the object cache drop-in and .htaccess rules are not written from a per-site activation, even if the settings are changed on a site.
How network-wide settings work #
- Network settings are stored once for the network, not per site. Changing them requires the
manage_networkcapability, which network administrators have. - Import, export, reset and Fix configuration in Tools act on the network settings.
- The Apply Recommended Settings action is offered once for the whole network.
- Run Cleanup Now in the Database section runs the selected cleanup tasks on every site. Database tables are optimized once, from the main site, because the sites share the same database.
For developers: Powered Cache detects network activation itself and stores the result in the POWERED_CACHE_IS_NETWORK constant. It is true when the plugin is network activated. The constant is only defined when it is not defined yet, so you can set it in wp-config.php, but you should not need to.
Admin bar on a network #
Which items appear in the Powered Cache admin bar menu depends on the user and the activation mode:
| Item | Network administrator | Site administrator |
|---|---|---|
| Purge Page Cache [Network Wide – All Sites] | Yes, with network activation | No |
| Purge All Cache | Yes | No |
| Purge Object Cache | Yes, when an object cache is on | No |
| Purge Page Cache (this site only) | Yes | Yes |
| Purge Current Page | Yes | Yes |
| Preload Cache | Yes | Only with per-site activation |
| Purge Cloudflare Cache | Yes, when Cloudflare is on | Only with per-site activation |
With Premium, network administrators also get Generate Critical CSS [Network Wide – All Sites] and Generate UCSS [Network Wide – All Sites].
How cache clearing works on a network #
- Purge Page Cache clears only the current site’s pages. On a subdirectory network, clearing the main site does not remove the cache of the other sites, even though their addresses start with the main site’s address.
- Purge Page Cache [Network Wide – All Sites] clears the page cache of every site.
- Purge All Cache removes all cached files of the whole installation and flushes the object cache. That is why only network administrators get it. The Purge All Cache button in Tools follows the same rule.
- Publishing or updating a post clears only the affected pages of that site. Ordinary post updates do not clear a whole site.
- When a site’s address, visibility or status changes, for example when it is archived, marked as spam, deleted or moved to a new domain, that site’s cache is cleared.
- On networks that use
sunrise.phpfor domain mapping, such as with Mercator, purges also clear the cache stored under the mapped domain.
Changed in 4.0: ordinary post updates on multisite no longer clear the whole site and rebuild its preload list. Before 4.0.1, a post update could trigger a full site purge.
Preloading on a network #
With network activation, a full preload covers every site in the network, one site after another, and the daily schedule runs from the main site. With per-site activation, each site preloads its own pages using its own settings. See Cache Preload.
Object cache #
A persistent object cache is shared by every site in the network, because WordPress loads one object-cache.php drop-in for all of them. Powered Cache therefore only writes this file when the plugin is network activated and a network administrator saves the setting. See Object Caching.
Premium on a network #
- Activate Powered Cache Premium the same way as the free plugin. When Premium is network activated, Powered Cache must be network activated too. Otherwise a notice offers a Network Activate button.
- With network activation, you enter the license once in Network Admin → Powered Cache → License. It is activated for the network’s main address and covers all sites.
- With per-site activation, each site activates the license for its own address.
- A key defined with
POWERED_CACHE_LICENSE_KEYinwp-config.phpalways counts as one network license.
Details are in Licenses on multisite.