SG Optimizer

Descrizione

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

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.

Installazione

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

Recensioni

Good But Needs Work

Love Siteground and the plugin itself is very good, some fantastic page load speeds, there is just one issue (I discovered this after updating about 40 client sites to my dismay).

Their system flushes the cache every three hours. This kind of defeats the object of caching if nothing on the site has changed.

So every three hours page speeds will be back to pre-optimized speeds for a lot of your visitors.

Back to WP rocket until they create an option to not auto flush the cache.

Don’t use – it kills your websites

SG Optimize needs CRON to be on!

Then the real mess begins and SiteGround kills all your websites!!

Why?

This plugin asks too much CPU minutes and then your websites will be killed.
The SiteGround CPU time is too low for a normal account they call Grow Big.

Then they press you to buy an more expensive one to get your websites running again.

Be wise – don’t use this plugin!

Contributori & Sviluppatori

“SG Optimizer” รจ un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

Traduci “SG Optimizer” nella tua lingua.

Interessato allo sviluppo?

Sfoglia il codice oppure iscriviti al log di sviluppo tramite RSS.

Changelog

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.