SG Optimizer - Version 5.7.12

Version Description

Download this release

Release Info

Developer sstoqnov
Plugin Icon 128x128 SG Optimizer
Version 5.7.12
Comparing to
See all releases

Code changes from version 5.7.11 to 5.7.12

core/Supercacher/Supercacher_Posts.php CHANGED
@@ -91,6 +91,18 @@ class Supercacher_Posts extends Supercacher {
91
  }
92
  }
93
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  /**
95
  * Purge the cache of the post that has been changed and
96
  * it's parents, the index cache, and the post categories.
@@ -127,6 +139,8 @@ class Supercacher_Posts extends Supercacher {
127
  $this->purge_post_terms( $post_id );
128
  // Purge the index cache.
129
  $this->purge_index_cache();
 
 
130
  }
131
 
132
  }
91
  }
92
  }
93
 
94
+ /**
95
+ * Purge the feed cache.
96
+ *
97
+ * @since 5.7.12
98
+ *
99
+ * @return bool True on success, false on failure.
100
+ */
101
+ public function purge_feed_cache() {
102
+ return $this->purge_cache_request( get_home_url( null, '/feed' ), true );
103
+
104
+ }
105
+
106
  /**
107
  * Purge the cache of the post that has been changed and
108
  * it's parents, the index cache, and the post categories.
139
  $this->purge_post_terms( $post_id );
140
  // Purge the index cache.
141
  $this->purge_index_cache();
142
+ // Purge the feed cache.
143
+ $this->purge_feed_cache();
144
  }
145
 
146
  }
readme.txt CHANGED
@@ -212,6 +212,9 @@ Our plugin uses a cookie in order to function properly. It does not store person
212
 
213
  == Changelog ==
214
 
 
 
 
215
  = Version 5.7.11 =
216
  * Improved CloudFlare Optimization
217
  * Add CloudFlare multisite support
212
 
213
  == Changelog ==
214
 
215
+ = Version 5.7.12 =
216
+ * Improved Feed Cache Flush
217
+
218
  = Version 5.7.11 =
219
  * Improved CloudFlare Optimization
220
  * Add CloudFlare multisite support
sg-cachepress.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: SG 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: 5.7.11
14
  * Author: SiteGround
15
  * Author URI: https://www.siteground.com
16
  * Text Domain: sg-cachepress
@@ -31,7 +31,7 @@ if ( ! defined( 'WPINC' ) ) {
31
 
32
  // Define version constant.
33
  if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
34
- define( __NAMESPACE__ . '\VERSION', '5.7.11' );
35
  }
36
 
37
  // Define slug constant.
10
  * Plugin Name: SG 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: 5.7.12
14
  * Author: SiteGround
15
  * Author URI: https://www.siteground.com
16
  * Text Domain: sg-cachepress
31
 
32
  // Define version constant.
33
  if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
34
+ define( __NAMESPACE__ . '\VERSION', '5.7.12' );
35
  }
36
 
37
  // Define slug constant.