Home
/
WordPress Tutorials
/
SG Optimizer Plugin Tutorial
/
SuperCacher Controls in SG Optimizer

SuperCacher Controls in SG Optimizer

This tutorial covers the following topics:

The SiteGround SuperCacher system provides several layers of caching for your site – NGINX Direct Delivery, Dynamic Cache, and Memcached. NGINX Direct Delivery is switched on by default for all our users and is not WordPress specific. The greatest performance boost for WordPress is achieved by using the Dynamic Cache and the Memcached. These have to be switched on by the user in the Site Tools  (learn how in our SuperCacher tutorial),  and then connected to your WordPress with the SG optimizer plugin (learn how below).

Dynamic Caching

The Dynamic Caching is a full-page caching mechanism powered by NGINX. If it is active for your hosting account, you can start using it on your WordPress site by enabling it in your SG Optimizer plugin:

Under the main switch, you will find several configuration options that are described below.

Manual Cache Purge

Pressing this button will completely clear the Dynamic Cache stored for your website. Useable, if you want to make sure that you’re loading the latest version of your site.

Automatic Cache Purge

Enabling this option will allow our plugin to clear parts of your cache once it detects changes in your content. We’ve developed a set of rules to purge the dynamic cache in a smart, efficient way depending on the change that has occurred on your site. We do a full purge on events like category deletion, plugin and theme update or switch, WordPress core update, etc. On the other hand, we do smart purge when a post is modified, a comment is added or a category is updated for example.

We highly recommend this option to be ON, as it ensures that new content is timely shown on your site.

How to Enable Browser-Specific Caching

We recommend you to enable this feature only if you’re experiencing issues with plugins, generating mobile version of your site or similar functionality. Once enabled, the cache has to be generated separately for different browsers which lowers its efficiency. To enable this feature move the Browser-Specific Cache toggle to ON.

Exclude URLs

In certain cases, you may want to exclude parts of your website from the cache. We’ve developed an easy interface to do that. Simply paste the relative path to the URL you want to exclude or the entire URL – we will parse it and add it into the right format.

In addition to exact URLs, you can use the wildcard sign “ * “ to exclude entire sections of your site. For example, if you want to exclude all posts in the “business” category, you can add:

https://yoursite.com/category/business/*

Or, if you want to exclude all URLs that have the word “business” in it, you can add:

*business*

Test Cache Status

Our caching system relies on headers and can be a bit tricky, especially for new users to tell if a certain result is served dynamically or from the cache. That’s why we’ve developed a quick cache testing tool to verify whether your URLs are properly cached. In addition to that, it’s a great way to test if URLs you’ve excluded from the cache are actually dynamic.

Memcached

Memcached is one of the most popular object caching solutions. Once it is active for your account, you need to turn on the Memcached in the SG optimizer plugin too. This will configure your site to use the service.

Share This Article