Cache Enabler – WordPress Cache - Version 1.3.1

Version Description

Download this release

Release Info

Developer keycdn
Plugin Icon 128x128 Cache Enabler – WordPress Cache
Version 1.3.1
Comparing to
See all releases

Code changes from version 1.3.0 to 1.3.1

advanced-cache.php CHANGED
@@ -86,7 +86,7 @@ if ( !empty($settings["cache_timeout"]) ) {
86
 
87
  // check if we need drop the ball to cause a redirect
88
  if ( isset($settings["permalink_trailing_slash"]) ) {
89
- if ( ! preg_match("/\/$/", $_SERVER["REQUEST_URI"]) ) {
90
  return false;
91
  }
92
  }
86
 
87
  // check if we need drop the ball to cause a redirect
88
  if ( isset($settings["permalink_trailing_slash"]) ) {
89
+ if ( ! preg_match("/\/(|\?.*)$/", $_SERVER["REQUEST_URI"]) ) {
90
  return false;
91
  }
92
  }
cache-enabler.php CHANGED
@@ -6,7 +6,7 @@ Description: Simple and fast WordPress disk caching plugin.
6
  Author: KeyCDN
7
  Author URI: https://www.keycdn.com
8
  License: GPLv2 or later
9
- Version: 1.3.0
10
  */
11
 
12
  /*
6
  Author: KeyCDN
7
  Author URI: https://www.keycdn.com
8
  License: GPLv2 or later
9
+ Version: 1.3.1
10
  */
11
 
12
  /*
inc/cache_enabler.class.php CHANGED
@@ -1562,6 +1562,8 @@ final class Cache_Enabler {
1562
  return '';
1563
  }
1564
 
 
 
1565
  // store as asset
1566
  call_user_func(
1567
  array(
@@ -1876,7 +1878,7 @@ final class Cache_Enabler {
1876
  "permalink_trailing_slash" => true
1877
  ));
1878
 
1879
- if ( ! preg_match("/\/$/", $_SERVER["REQUEST_URI"]) ) {
1880
  return true;
1881
  }
1882
  } else {
1562
  return '';
1563
  }
1564
 
1565
+ $data = apply_filters('cache_enabler_before_store', $data);
1566
+
1567
  // store as asset
1568
  call_user_func(
1569
  array(
1878
  "permalink_trailing_slash" => true
1879
  ));
1880
 
1881
+ if ( ! preg_match("/\/(|\?.*)$/", $_SERVER["REQUEST_URI"]) ) {
1882
  return true;
1883
  }
1884
  } else {
readme.txt CHANGED
@@ -32,7 +32,6 @@ The Cache Enabler plugin creates static HTML files and stores them on the server
32
  * WebP Support (when combined with [Optimus](https://optimus.io/en/ "Optimus"))
33
  * Supports responsive images via srcset since WP 4.4
34
  * Works perfectly with [Autoptimize](https://wordpress.org/plugins/autoptimize/)
35
- * HTTP/2 Focused
36
 
37
  > Cache Enabler is the first WP plugin to allow you to serve WebP images without JavaScript and also fully supports srcset since WP 4.4. WebP is a new image format that provides lossless and lossy compression for images on the web. WebP lossless images are [26% smaller](https://developers.google.com/speed/webp/docs/webp_lossless_alpha_study#results "webp lossless alpha study") in size compared to PNGs.
38
 
@@ -50,7 +49,7 @@ When combined with Optimus, the Wordpress Cache Enabler allows you to easily del
50
 
51
 
52
  = System Requirements =
53
- * PHP >=5.4
54
  * WordPress >=4.6
55
 
56
 
@@ -69,6 +68,10 @@ When combined with Optimus, the Wordpress Cache Enabler allows you to easily del
69
 
70
  == Changelog ==
71
 
 
 
 
 
72
  = 1.3.0 =
73
  * Clear cache on woocommerce stock updates
74
 
32
  * WebP Support (when combined with [Optimus](https://optimus.io/en/ "Optimus"))
33
  * Supports responsive images via srcset since WP 4.4
34
  * Works perfectly with [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 
35
 
36
  > Cache Enabler is the first WP plugin to allow you to serve WebP images without JavaScript and also fully supports srcset since WP 4.4. WebP is a new image format that provides lossless and lossy compression for images on the web. WebP lossless images are [26% smaller](https://developers.google.com/speed/webp/docs/webp_lossless_alpha_study#results "webp lossless alpha study") in size compared to PNGs.
37
 
49
 
50
 
51
  = System Requirements =
52
+ * PHP >=5.6
53
  * WordPress >=4.6
54
 
55
 
68
 
69
  == Changelog ==
70
 
71
+ = 1.3.1
72
+ * Fix for missing trailing slashes was incomplete
73
+ * Add filter option before minification
74
+
75
  = 1.3.0 =
76
  * Clear cache on woocommerce stock updates
77