SG Optimizer - Version 7.0.6

Version Description

Download this release

Release Info

Developer elenachavdarova
Plugin Icon 128x128 SG Optimizer
Version 7.0.6
Comparing to
See all releases

Code changes from version 7.0.5 to 7.0.6

core/Supercacher/Supercacher.php CHANGED
@@ -5,6 +5,8 @@ use SiteGround_Optimizer\DNS\Cloudflare;
5
  use SiteGround_Optimizer\File_Cacher\File_Cacher;
6
  use SiteGround_Optimizer\Front_End_Optimization\Front_End_Optimization;
7
  use SiteGround_Optimizer\Options\Options;
 
 
8
  /**
9
  * SG CachePress main plugin class
10
  */
@@ -192,6 +194,11 @@ class Supercacher {
192
  * @return bool True if the cache is deleted, false otherwise.
193
  */
194
  public static function purge_cache_request( $url, $include_child_paths = true ) {
 
 
 
 
 
195
  // Bail if the url is empty.
196
  if ( empty( $url ) ) {
197
  return;
5
  use SiteGround_Optimizer\File_Cacher\File_Cacher;
6
  use SiteGround_Optimizer\Front_End_Optimization\Front_End_Optimization;
7
  use SiteGround_Optimizer\Options\Options;
8
+ use SiteGround_Helper\Helper_Service;
9
+
10
  /**
11
  * SG CachePress main plugin class
12
  */
194
  * @return bool True if the cache is deleted, false otherwise.
195
  */
196
  public static function purge_cache_request( $url, $include_child_paths = true ) {
197
+ // Check if the user is hosted on SiteGround.
198
+ if ( ! Helper_Service::is_siteground() ) {
199
+ return;
200
+ }
201
+
202
  // Bail if the url is empty.
203
  if ( empty( $url ) ) {
204
  return;
readme.txt CHANGED
@@ -328,6 +328,11 @@ Our plugin uses a cookie in order to function properly. It does not store person
328
 
329
  == Changelog ==
330
 
 
 
 
 
 
331
  = Version 7.0.5 =
332
  Release Date: March 2nd, 2022
333
 
328
 
329
  == Changelog ==
330
 
331
+ = Version 7.0.6 =
332
+ Release Date: March 4th, 2022
333
+
334
+ * Improved installation for users not hosted on SiteGround.
335
+
336
  = Version 7.0.5 =
337
  Release Date: March 2nd, 2022
338
 
sg-cachepress.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: SiteGround Optimizer
11
  * Plugin URI: https://siteground.com
12
  * Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
13
- * Version: 7.0.5
14
  * Author: SiteGround
15
  * Author URI: https://www.siteground.com
16
  * Text Domain: sg-cachepress
@@ -32,7 +32,7 @@ if ( ! defined( 'WPINC' ) ) {
32
 
33
  // Define version constant.
34
  if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
35
- define( __NAMESPACE__ . '\VERSION', '7.0.5' );
36
  }
37
 
38
  // Define slug constant.
10
  * Plugin Name: SiteGround Optimizer
11
  * Plugin URI: https://siteground.com
12
  * Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
13
+ * Version: 7.0.6
14
  * Author: SiteGround
15
  * Author URI: https://www.siteground.com
16
  * Text Domain: sg-cachepress
32
 
33
  // Define version constant.
34
  if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
35
+ define( __NAMESPACE__ . '\VERSION', '7.0.6' );
36
  }
37
 
38
  // Define slug constant.