SG Optimizer

Description

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:

if (function_exists(‘sg_cachepress_purge_cache’)) {
sg_cachepress_purge_cache();
}

WP-CLI command is now available: “wp sg purge” to clear the cache.

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.

Requirements

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

Our plugin uses a cookie in order to function properly. It does not store personal data and is used solely for the needs of our caching system.

Configuration

Dynamic Cache Settings

  • Dynamic Cache ON/OFF – enable or disable the SiteGround Dynamic caching system
  • AutoFlush Cache ON/OFF – automatically flush the Dynamic cache when you edit your content
  • Purge Cache – Manually purge all cached data from the dynamic cache

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.

Installation

Automatic Installation

  1. Go to Plugins -> Add New
  2. Search for “SG CachePress”
  3. Click on the Install button under the SG CachePress plugin
  4. Once the plugin is installed, click on the Activate plugin link

Manual Installation

  1. Login to the WordPress admin panel and go to Plugins -> Add New
  2. Select the ‘Upload’ menu
  3. Click the ‘Choose File’ button and point your browser to the SGCachePress.zip file you’ve downloaded
  4. Click the ‘Install Now’ button
  5. Go to Plugins -> Installed Plugins and click the ‘Activate’ link under the WordPress SG CachePress listing

FAQ

Installation Instructions

Automatic Installation

  1. Go to Plugins -> Add New
  2. Search for “SG CachePress”
  3. Click on the Install button under the SG CachePress plugin
  4. Once the plugin is installed, click on the Activate plugin link

Manual Installation

  1. Login to the WordPress admin panel and go to Plugins -> Add New
  2. Select the ‘Upload’ menu
  3. Click the ‘Choose File’ button and point your browser to the SGCachePress.zip file you’ve downloaded
  4. Click the ‘Install Now’ button
  5. Go to Plugins -> Installed Plugins and click the ‘Activate’ link under the WordPress SG CachePress listing

Reviews

OK, not great

SG Optimizer is alright, but there are much better ones out there. It speeds up your website maybe a tiny bit but I feel it’s written to reduce CPU usage rather than for actual load speed. For better performance, go with Swift or WP Rocket.

Easy solution for SiteGround customers

I usually use WP Rocket but for a SiteGround site I thought I’d try this. Static Cache and Dynamic Cache with Memcached works fine out of the box. My site is as fast as I’d expect with any other performance plugins, except that this is included with my hosting.

It doesn’t have a lot of settings but for a simpler site that’s a good thing because there’s nothing special that needs to be done. The only other thing I wanted was a CDN (other than Cloudflare) but the CDN Enabler plugin with KeyCDN made that cheap and easy.

The HTTPS aspect was helpful too.

Close, But No Cigar

Firstly, as far as web hosts go, I would put Siteground head and shoulders above the rest. There are quirks occasionally, and they do have some pretty strict limits on the server resources, but support is excellent, and I’ve had 20+ sites with 100% uptime for nearly 3 years. This plugin, though, doesn’t cut it.

As a cache plugin, SG Optimizer actually does alright. It’s better than some alternatives, and worse than others.

The biggest issue, and the reason it only gets 3 stars form me, is that it has no built in minification for CSS or JS. Worse, if you try running a third party minify plugin, almost everything will break, especially if you use WooCommerce. Given that Pagespeed will immediately object to a lack of minification, this is a glaring omission.

They desperately need to sort out the compatibility issues, or add minification right into the plugin. After all, if they’re using server caching, then they know better than anybody what the server needs to cache and minify to the maximum extent.

Until they do that, forget about SG Optimizer and look elsewhere.

Read all 38 reviews

Contributors & Developers

“SG Optimizer” is open source software. The following people have contributed to this plugin.

Contributors

“SG Optimizer” has been translated into 6 locales. Thank you to the translators for their contributions.

Translate “SG Optimizer” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

Version 4.0.7

  • Fixed bug in the force SSL functionality in certain cases for MS
  • Added information about the cookie our plugin uses in the readme file

Version 4.0.6

  • Bug fixes
  • Better https enforcement in MS environment

Version 4.0.5

  • Removed stopping of WP Rocket cache

Version 4.0.4

  • Minor bug fixes

Version 4.0.3

  • Switching recommended PHP Version to 7.1

Version 4.0.2

  • WPML and Memcache / Memcached bug fix

Version 4.0.1

  • Minor bug fixes
  • UK locale issue fixed

Version 4.0.0

  • Added proper Multisite support
  • Quick optimizations – Gzip and Browser cache config settings for the Network Admin
  • Network admin can purge the cache per site
  • Network admin can disallow Cache and HTTPS configuration pages per site
  • WPML support when Memcached is enabled
  • Cache is being purged per site and not for the entire network
  • Multiple performance & interface improvements
  • Security fixes against, additional access checks introduced
  • Fixed minor cosmetic errors in the interface

Version 3.3.3

  • Fixed minor interface issues

Version 3.3.2

  • Fixed bug with disabling the Force HTTPS option

Version 3.3.1

  • Fixed cache purge issue when CloudFlare is enabled
  • Added logging of failed attempts in XMLRPC API.

Version 3.3.0

  • Improved public purge function for theme and plugin developers
  • Added WP-CLI command for cache purge – wp sg purge

Version 3.2.4

  • Updated Memcache.tpl
  • Fixed a link in the PHP Check interface

Version 3.2.3

  • Improved WP-CLI compatibility

Version 3.2.1

  • Improved cron fallback, added error message if the WP CRON is disabled

Version 3.2.0

  • Adding PHP 7.0 Compatibility check & PHP Version switch

Version 3.0.5

  • Improved Certficiate check

Version 3.0.4

  • Fixed bug with unwrittable .htaccess

Version 3.0.3

  • Fixed bug in adding CSS files

Version 3.0.2

  • User-agent added to the SSL availability check

Version 3.0.1

  • PHP Compatibility fixes

Version 3.0.0

  • Plugin renamed to SG Optimizer
  • Interface split into multiple screens
  • HTTPS Force functionality added which will reconfigure WordPress, make an .htaccess redirect to force all the traffic through HTTPS and fixes any potential insecure content issues
  • Plugin prepared for PHP version compatibility checker and changer tool

Version 2.3.11

  • Added public purge function
  • Memcached bug fixes

Version 2.3.10

  • Improved Memcached performance
  • Memcached bug fixes

Version 2.3.9

  • Improved WordPress 4.6 compatibilitty

Version 2.3.8

  • Improved compatibility with SiteGround Staging System

Version 2.3.7

  • Fixed PHP warnings in Object Cache classes

Version 2.3.6

  • Minor URL handling bug fixes

Version 2.3.5

  • Improved cache testing URL detection

Version 2.3.4

  • CSS Bug fixes

Version 2.3.3

  • Improved Memcache work
  • Interface improvements
  • Bug fixes

Version 2.3.2

  • Fixed bug with Memcached cache purge

Version 2.3.1

  • Interface improventes
  • Internationalization support added
  • Spanish translation added by SiteGround.es
  • Bulgarian translation added

Version 2.3.0

  • Memcached support added
  • Better PHP7 compatibility

Version 2.2.11

  • Improved compatibility with WP Rocket
  • Bug fixes

Version 2.2.10

  • Revamped notices work
  • Bug fixes

Version 2.2.9

  • Bug fixes

Version 2.2.8

  • Bug fixing and improved notification behaviour
  • Fixed issues with MS installations

Version 2.2.7

  • Added testing box and notification if Dynamic Cache is not enabled in cPanel

Version 2.2.6

  • Fixed bug with Memcached causing issues after WP Database update

Version 2.2.5

  • Minor system improvements

Version 2.2.4

  • Minor system improvements

Version 2.2.3

  • Admin bar link visible only for admin users

Version 2.2.2

  • Minor bug fixes

Version 2.2.1

  • Added Purge SG Cache button
  • Redesigned mobile-friendly interface

Version 2.2.0

  • Added NGINX support

Version 2.1.7

  • Fixed plugin activation bug

Version 2.1.6

  • The purge button will now clear the Static cache even if Dynamic cache is not enabled
  • Better and more clear button labeling

Version 2.1.5

  • Better plugin activation and added to the wordpress.org repo

Version 2.1.2

  • Fixed bug that prevents you from enabling Memcached if using a wildcard SSL Certificate

Version 2.1.1

  • Cache will flush when scheduled posts become live

Version 2.1.0

  • Cache will be purged if WordPress autoupdates

Version 2.0.3

  • Minor bug fixes

Version 2.0.2

  • 3.8 support added

Version 2.0.1

  • Interface improvements
  • Minor bug fixes

Version 2.0

  • New interface
  • Minor bug fixes
  • Settings and Purge pages combined into one

Version 1.2.3

  • Minor bug fixes
  • SiteGround Memcached support added
  • URL Exclude from caching list added

1.0

  • Plugin created.