SG Optimizer

説明

This plugin is designed to link WordPress with the SiteGround Performance services. It WILL NOT WORK on another hosting provider. The SG Optimizer plugin has few different parts handling speciffic performance optimizations:

SuperCacher Config

The main functionality of SuperCacher part of the plugin is to purge your dynamic cache whenever your content updates. For example, when you create a new post, someone comments your articles, etc. In addition to that, if you have a working Memcached service on your server, the plugin will allow you to easily configure and enable WordPress to use it.

There is public Purge function – sg_cachepress_purge_cache, which can be used by other plugins/themes. Example usage:

HTTPS Config

The HTTPS Config allows you to force SSL usage on your site. It will redirect your entire traffic over secure connections and will fix mixed content issues. A side benefit of switching on the HTTPS is the automatic use of the HTTP2 protocol and its performance benefits.

PHP Config

This tool will allow you to check if your website is compatible with the recommended by SiteGround PHP version(7.0) and switch to it with a click. It is highly advisable to keep your WordPress running on the recommended PHP for best security and performance.

要件

In order to work correctly, this plugin requires that your server meets the following criteria:

PHP 5.5

SiteGround account

If you’re not hosted with SiteGround this plugin WILL NOT WORK because it relies on a specific server configuration

Exclude URLs From Dynamic Caching

This field allows you to exclude URLs from the cache. This means that if you need certain parts of your site to be completely dynamic, you need to add them into this list. Type in the last part of the URL that you want to be excluded. For example, if you type in ‘url’, then ‘/path/to/url/’ will be excluded but ‘/path/to/’ and ‘/path/to/url/else/’ won’t.

Memcached Settings

Enable Memcached – Store in the server’s memory (using Memcached) frequently executed queries to the database for a faster access on a later use.

HTTPS Configuration

Force HTTPS on/off — enable or disable the the https redirect for your whole site and the rewriting of the resource links from http to https.

インストール

Automatic Installation

Go to Plugins -> Add New

Search for “SG CachePress”

Click on the Install button under the SG CachePress plugin

Once the plugin is installed, click on the Activate plugin link

手動インストール

Login to the WordPress admin panel and go to Plugins -> Add New

Select the ‘Upload’ menu

Click the ‘Choose File’ button and point your browser to the SGCachePress.zip file you’ve downloaded

I had high hopes for the plugin and I am still using it but have found it to be a bit of a “dark art”.

HTTPS config writes some htaccess rules but doesn’t say where it is writing them. (In my case, following the recommended practice of running wordpress in a sub-folder, it writes them to the wrong folder.)

And now HTTP is switched on, I can’t link out to non-https:// web sites without encountered errors.

Plus I’ve had a support request in around this topic for 3 weeks and had no response.