SG Optimizer - Version 2.2

Version Description

Download this release

Release Info

Developer Hristo Sg
Plugin Icon 128x128 SG Optimizer
Version 2.2
Comparing to
See all releases

Code changes from version 2.2.10 to 2.2

Files changed (3) hide show
  1. readme.txt +5 -1
  2. sg-cachepress.php +13 -1
  3. views/sg-cache.php +2 -2
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: Hristo Sg
3
  Tags: nginx, caching, speed, memcache, memcached, performance, siteground, nginx, supercacher
4
  Requires at least: 3.0.1
5
- Tested up to: 4.2
6
  Stable tag: 1.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -55,6 +55,10 @@ This field allows you to exclude URLs from the cache. This means that if you nee
55
 
56
  == Changelog ==
57
 
 
 
 
 
58
  = Version 2.2.10 =
59
  * Revamped notices work
60
  * Bug fixes
2
  Contributors: Hristo Sg
3
  Tags: nginx, caching, speed, memcache, memcached, performance, siteground, nginx, supercacher
4
  Requires at least: 3.0.1
5
+ Tested up to: 4.3
6
  Stable tag: 1.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
55
 
56
  == Changelog ==
57
 
58
+ = Version 2.2.11 =
59
+ * Improved compatibility with WP Rocket
60
+ * Bug fixes
61
+
62
  = Version 2.2.10 =
63
  * Revamped notices work
64
  * Bug fixes
sg-cachepress.php CHANGED
@@ -9,7 +9,7 @@
9
  * @wordpress-plugin
10
  * Plugin Name: SG CachePress
11
  * Description: Through the settings of this plugin you can manage how your Wordpress interracts with NGINX and Memcached.
12
- * Version: 2.2.10
13
  * Author: SiteGround
14
  * Text Domain: sg-cachepress
15
  * Domain Path: /languages
@@ -36,6 +36,18 @@ register_deactivation_hook( __FILE__, array( 'SG_CachePress', 'deactivate' ) );
36
  add_action( 'plugins_loaded','sg_cachepress_start' );
37
  add_action( 'admin_init', array('SG_CachePress','admin_init_cachepress') );
38
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  /**
40
  * Initialise the classes in this plugin.
41
  *
9
  * @wordpress-plugin
10
  * Plugin Name: SG CachePress
11
  * Description: Through the settings of this plugin you can manage how your Wordpress interracts with NGINX and Memcached.
12
+ * Version: 2.2.11
13
  * Author: SiteGround
14
  * Text Domain: sg-cachepress
15
  * Domain Path: /languages
36
  add_action( 'plugins_loaded','sg_cachepress_start' );
37
  add_action( 'admin_init', array('SG_CachePress','admin_init_cachepress') );
38
 
39
+ add_action( 'init', 'disable_other_caching_plugins' );
40
+
41
+ /**
42
+ * Disables Other Caching Plugins if SG SuperCacher is enabled
43
+ */
44
+ function disable_other_caching_plugins()
45
+ {
46
+ $sg_cachepress_options = new SG_CachePress_Options;
47
+ if( $sg_cachepress_options->is_enabled('enable_cache') )
48
+ add_filter( 'do_rocket_generate_caching_files', '__return_false' );
49
+ }
50
+
51
  /**
52
  * Initialise the classes in this plugin.
53
  *
views/sg-cache.php CHANGED
@@ -1,7 +1,7 @@
1
  <div class="sgwrap">
2
  <div class="box">
3
  <h2>SuperCacher for WordPress by SiteGround</h2>
4
- <p>The SuperCacher is a system that allows you to use the SitGround dynamic cache and Memcached to optimize the performance of your WordPress. In order to take advantage of the system you should have the SuperCacher enabled at your web host plus the required cache options turned on below. For more information on the different caching options refer to the <a href="http://www.siteground.com/tutorials/supercacher/" target="_blank">SuperCacher Tutorial</a>! </p>
5
  </div>
6
 
7
  <div class="box clear">
@@ -73,4 +73,4 @@
73
  <div class="clr"></div>
74
  </div>
75
  </div>
76
- </div>
1
  <div class="sgwrap">
2
  <div class="box">
3
  <h2>SuperCacher for WordPress by SiteGround</h2>
4
+ <p>The SuperCacher is a system that allows you to use the SiteGround dynamic cache and Memcached to optimize the performance of your WordPress. In order to take advantage of the system you should have the SuperCacher enabled at your web host plus the required cache options turned on below. For more information on the different caching options refer to the <a href="http://www.siteground.com/tutorials/supercacher/" target="_blank">SuperCacher Tutorial</a>! </p>
5
  </div>
6
 
7
  <div class="box clear">
73
  <div class="clr"></div>
74
  </div>
75
  </div>
76
+ </div>