Breeze – WordPress Cache Plugin - Version 1.0.8

Version Description

  • Fix: Cache exclusion for pages that returns status code other than 200
Download this release

Release Info

Developer adeelkhan
Plugin Icon 128x128 Breeze – WordPress Cache Plugin
Version 1.0.8
Comparing to
See all releases

Code changes from version 1.0.7 to 1.0.8

Files changed (3) hide show
  1. breeze.php +1 -1
  2. inc/cache/execute-cache.php +6 -3
  3. readme.txt +9 -6
breeze.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Breeze
4
  * Description: Breeze is a WordPress cache plugin with extensive options to speed up your website. All the options including Varnish Cache are compatible with Cloudways hosting.
5
- * Version: 1.0.7
6
  * Text Domain: breeze
7
  * Domain Path: /languages
8
  * Author: Cloudways
2
  /**
3
  * Plugin Name: Breeze
4
  * Description: Breeze is a WordPress cache plugin with extensive options to speed up your website. All the options including Varnish Cache are compatible with Cloudways hosting.
5
+ * Version: 1.0.8
6
  * Text Domain: breeze
7
  * Domain Path: /languages
8
  * Author: Cloudways
inc/cache/execute-cache.php CHANGED
@@ -92,11 +92,10 @@ if (!$check_exclude) {
92
  }
93
  }
94
 
95
- breeze_serve_cache($filename, $url_path, $X1,$devices);
96
  ob_start('breeze_cache');
97
-
98
  } else {
99
- header('Cache-Control: no-cache');
100
  }
101
 
102
  /**
@@ -109,6 +108,10 @@ if (!$check_exclude) {
109
  */
110
  function breeze_cache($buffer, $flags)
111
  {
 
 
 
 
112
 
113
  require_once 'Mobile-Detect-2.8.25/Mobile_Detect.php';
114
  $detect = new \Cloudways\Breeze\Mobile_Detect\Mobile_Detect;
92
  }
93
  }
94
 
95
+ breeze_serve_cache($filename, $url_path, $X1, $devices);
96
  ob_start('breeze_cache');
 
97
  } else {
98
+ header('Cache-Control: no-cache');
99
  }
100
 
101
  /**
108
  */
109
  function breeze_cache($buffer, $flags)
110
  {
111
+ // No cache for pages without 200 response status
112
+ if (http_response_code() !== 200) {
113
+ return $buffer;
114
+ }
115
 
116
  require_once 'Mobile-Detect-2.8.25/Mobile_Detect.php';
117
  $detect = new \Cloudways\Breeze\Mobile_Detect\Mobile_Detect;
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: Cloudways
3
  Tags: cache, caching, performance, wp-cache, cdn, combine, compress, speed plugin, database cache,gzip, http compression, js cache, minify, optimize, page cache, performance, speed, expire headers
4
  Requires at least: 4.5
5
- Tested up to: 4.8.3
6
- Stable tag: 1.0.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -113,18 +113,18 @@ Breeze has been tested to work with all major hosting providers. In addition, ma
113
 
114
  You can get your questions answered on the WordPress support forums. If you are a Cloudways customer, please feel free to start a discussion at <a href="https://community.cloudways.com/">Cloudways Community Forum</a>.
115
 
116
- = How can I test and verify the results (mentioned on the page)? =
117
 
118
  You will be able to see the impact of the Breeze Cache Plugin almost immediately. We also recommend using the following tools for generating metrics:
119
- <a href="https://developers.google.com/speed/pagespeed/" target="_blank">Google Page Speed</a>
120
  <a href="https://www.webpagetest.org/test" target="_blank">WebPagetest</a>
121
  <a href="https://tools.pingdom.com/" target="_blank">Pingdom</a>
122
 
123
- = Does Breeze plugin work with Visual Builder(insert link)? =
124
 
125
  Yes, Breeze Plugin is compatible with Visual Builder.
126
 
127
- = What popular CDN are supported by Breze Plugin? =
128
 
129
  Breeze supports the following three popular CDNs:
130
  <a href="https://support.cloudways.com/how-to-use-breeze-with-maxcdn/" target="_blank">MaxCDN</a>
@@ -145,6 +145,9 @@ Using Gzip, Breeze compresses the request files, further reducing the size of th
145
 
146
  == Changelog ==
147
 
 
 
 
148
  = 1.0.7 =
149
  * Fix: Grouping and Minification issues for PHP 7.1
150
  * Fix: Cache purge after version update issue
2
  Contributors: Cloudways
3
  Tags: cache, caching, performance, wp-cache, cdn, combine, compress, speed plugin, database cache,gzip, http compression, js cache, minify, optimize, page cache, performance, speed, expire headers
4
  Requires at least: 4.5
5
+ Tested up to: 4.9.1
6
+ Stable tag: 1.0.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
113
 
114
  You can get your questions answered on the WordPress support forums. If you are a Cloudways customer, please feel free to start a discussion at <a href="https://community.cloudways.com/">Cloudways Community Forum</a>.
115
 
116
+ = How can I test and verify the results? =
117
 
118
  You will be able to see the impact of the Breeze Cache Plugin almost immediately. We also recommend using the following tools for generating metrics:
119
+ <a style="margin-top: 10px" href="https://developers.google.com/speed/pagespeed/" target="_blank">Google Page Speed</a>
120
  <a href="https://www.webpagetest.org/test" target="_blank">WebPagetest</a>
121
  <a href="https://tools.pingdom.com/" target="_blank">Pingdom</a>
122
 
123
+ = Does Breeze plugin work with Visual Builder? =
124
 
125
  Yes, Breeze Plugin is compatible with Visual Builder.
126
 
127
+ = What popular CDN are supported by Breeze Plugin? =
128
 
129
  Breeze supports the following three popular CDNs:
130
  <a href="https://support.cloudways.com/how-to-use-breeze-with-maxcdn/" target="_blank">MaxCDN</a>
145
 
146
  == Changelog ==
147
 
148
+ = 1.0.8 =
149
+ * Fix: Cache exclusion for pages that returns status code other than 200
150
+
151
  = 1.0.7 =
152
  * Fix: Grouping and Minification issues for PHP 7.1
153
  * Fix: Cache purge after version update issue