How to Enable the SuperCacher for Multisite

Learn how to configure the SuperCacher for all sites in your Multisite Network

We are happy to announce that the latest version of our SG Optimizer in-house built plugin includes support for WordPress Multisites. In this tutorial we will show you how to enable and manage dynamic caching for the subsites of your application.

Enable the SG Optimizer

Before configuring the SG Optimizer, you should make sure it is installed on the main site and active for the whole network. You may find detailed instructions how to download and install the plugin in our How to Enable the SuperCacher in WordPress tutorial. After the plugin is successfully installed, login to the main site's Dashboard and navigate to My Sites > Network Admin > Plugins.

Find the SG Optimizer plugin and click on the Network Activate link.

Now the SG Optimizer plugin is active for the main website and the subsites.

Manage the Dynamic Cache for subsites from the Network Admin

What we did for our customer's convenience was to implement two different ways for managing the caching configuration - from the Network Admin of the main website and from the Dashboard of each subsite.

In order to alter the caching settings form the Dashboard of the main site, you should navigate to My Sites > Network Admin > Sites. This would present you with a list of your subsites. Just hover the subsite for which you would like to manage the caching settings. There are two important links here - Edit and Purge cache. The Purge cache option allows you to flush a website's cache by just clicking on the link. To manage the caching features, you should click on the Edit link .

Now click on the Settings tab and scroll to the bottom of the page where you will see the SG Optimizer Options section.

A short explanation of each feature may be found below:

  • Disallow Cache Configuration - This allows you to hide the SuperCacher Config from the subsite's dashboard. If this option is ticked, the dynamic caching will be managed only from the Network Admin.
  • Disallow HTTP configuration - This allows you to hide the HTTPS Config option from the subsite's dashboard. If it is ticked, the Force HTTPS will be managed only from the Network Admin.
  • Enable Cache - This option enables the Dynamic caching for the chosen subsite.
  • AutoFlush Cache - As the name of the option suggests, it enables automatic purge of the cache that would be done each 3 hours.
  • Force HTTPS - Ticking this would add .htaccess directives that will redirect all connections to the subsite through HTTPS protocol.

If both the Disallow Cache Configuration and Disallow HTTP configuration options are left unticked, this is what would be shown in the subsite's Dashboard:

If you choose the Disallow Cache Configuration option, the SuperCacher Config would be hidden from the SG Optimizer:

Equally, choosing Disallow HTTP configuration would hide the HTTPS  Config and leave only the SuperCacher Config.

Manage the Dynamic Cache from a subsite's Dashboard

To access the SG Optimizer features from the subsite's Dashboard, just login to the chosen site's admin panel and click on the SG Optimizer menu on the left. If both the SuperCacher Config and HTTPS Config are allowed, you would be able to see and manage each of them.

Clicking on SuperCacher Config would redirect you to the Standard Dynamic caching page:

On it you may enable/disable the Dynamic cache and AutoFlush cache. You can also manually flush it by clicking the Purge cache button. You can also exclude URLs from being cached and check the cache status. Detailed information for those settings may be found in our tutorial here.

Another feature that can be accessed from your subsite's dashboard is the HTTPS Config.

It allows you to redirect all traffic to the website through HTTPS by a single click on the Force HTTPS toggle button.

Configure Global Settings for SG Optimizer

If you want to configure global settings that would apply for the whole network, just go to the main site's Dashboard > SG Optimizer > SG Optimizer.

This page will present you with 2 sections - Global settings for your Multisite Network and Default Settings for New Sites. 

In the Global settings for your Musltisite Network section you can enable/disable Gzip Compression and Leverage browser caching for all sites that are currently in the Multisite Network. The Default Settings for New Sites section provides you with the option to automatically enable Dynamic Cache and AutoFlush Cache for each newly created website. If enabled, those would be the default settings for newly created sites, but you would still be able to change them for each subsite later on.

The SG Optimizer plugin in the Network Admin provides you with the feature to check if your websites are compatible with PHP 7.0 and if yes - upgrade the PHP version for you. You may run that test from the Network Admin Dashboard > SG Optimizer > PHP config. You will be redirected to a new page where you should press the Check PHP 7.0 Compatibility button.

Keep in mind that it might take a while for the plugin to check if your website and its content are compatible with PHP7.0. Once it is ready and if your website is compatible with the aforementioned PHP version, you would see the Upgrade to PHP 7.0 button.

Just press it and the PHP version will be changed for you. Once the new PHP version is active, you would be given with the option to manually change to another version if necessary:

Another feature of the SG Optimizer plugin that can be accessed from the Network admin Dashboard > SG Optimizer, is the Multisite log. It basically provides you with records of the last ten changes applied on the SG Optimizer configuration.

Important!If your WordPress Multisite is configured to work with subdomains or mapped domains, you navigate to your cPanel > Super Cacher > Level2: Dynamic Cache, where you should add the subsite's URL to the application's list and enable Dynamic caching for it.