You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Rapid Cache is installed in a WordPress Multisite Environment, it must be Network Activated. This results in Rapid Cache being enabled on all sites in the Multisite Network. If you want to restrict Rapid Cache so that it's only enabled on the Primary Blog, you can use an MU-Plugin.
Create the following file and directory: wp-content/mu-plugins/rc-restrict-to-primary-blog.php
<?phpadd_action('init', function()
{
if(!is_multisite())
return; // Not applicable.if(!defined('DOMAIN_CURRENT_SITE'))
return; // Not possible.if(!defined('PATH_CURRENT_SITE'))
return; // Not possible.if(strcasecmp($GLOBALS['current_blog']->domain, DOMAIN_CURRENT_SITE) !== 0)
define('RAPID_CACHE_ALLOWED', FALSE);
elseif(strcasecmp($GLOBALS['current_blog']->path, PATH_CURRENT_SITE) !== 0)
define('RAPID_CACHE_ALLOWED', FALSE);
});
How do I know Rapid Cache has been disabled on the Child Blogs?
If you visit a Child Blog (while logged out of WordPress, as Logged-In User Caching is disabled by default) and "View Source" on one of the Child Blog pages, you should see a message like this at the bottom:
This indicates that the MU-Plugin is working and limiting Rapid Cache to the Primary Blog.
How do I hide the Rapid Cache HTML Notes?
You can disable the HTML Notes in WordPress Dashboard → Rapid Cache → Plugin Options → Enable/Disable.