Breeze – WordPress Cache Plugin - Version 1.0.1-beta

Version Description

  • Fix : Purging issue to allow only admin users to Purge
  • Add : feedback link
Download this release

Release Info

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

Code changes from version 1.0.0 to 1.0.1-beta

assets/css/style.css CHANGED
@@ -4,21 +4,16 @@
4
  margin: 15px 0 15px 0;
5
  border: 1px solid #CCC;
6
  }
 
 
 
 
7
  .breeze-header .breeze-logo{
8
- background-image: url("../images/hdr-logo.png");
9
- background-position: center -169px;
10
- width: 60px;
11
- height: 60px;
12
  background-repeat: no-repeat;
13
- float: left;
14
- }
15
- .breeze-header .breeze-logo-title{
16
- float: left;
17
- font-size: 16px;
18
- font-weight:500;
19
- line-height: 25px;
20
- margin-top: 20px;
21
  }
 
22
  .breeze-header a{
23
  text-decoration: none;
24
  color: #000;
4
  margin: 15px 0 15px 0;
5
  border: 1px solid #CCC;
6
  }
7
+ .breeze-header{
8
+ width: 200px;
9
+ }
10
+
11
  .breeze-header .breeze-logo{
12
+ background-image: url("../images/breez-logo200x46.png");
13
+ height: 70px;
 
 
14
  background-repeat: no-repeat;
 
 
 
 
 
 
 
 
15
  }
16
+
17
  .breeze-header a{
18
  text-decoration: none;
19
  color: #000;
assets/images/breez-logo200x46.png ADDED
Binary file
assets/js/breeze-backend.js CHANGED
@@ -6,9 +6,6 @@ jQuery(document).ready(function ($) {
6
  $('#wp-admin-bar-breeze-purge-file-group').click(function(){
7
  breeze_purgeFile_callAjax();
8
  });
9
- $('#wp-admin-bar-breeze-purge-database-group').click(function(){
10
- breeze_purgeDatabase_callAjax();
11
- });
12
  // Varnish clear button
13
  $('#purge-varnish-button').click(function(){
14
  breeze_purgeVarnish_callAjax();
@@ -21,12 +18,13 @@ jQuery(document).ready(function ($) {
21
  dataType:'json',
22
  method:'POST',
23
  data:{
24
- action:'breeze_purge_varnish'
 
25
  },
26
  success : function(res){
27
  current = location.href;
28
  if(res.clear){
29
- var div = '<div id="message" class="notice notice-success" style="margin-top:10px; margin-bottom:10px;padding: 10px;"><strong>OK! Purge Varnish Success</strong></div>';
30
  //backend
31
  $("#wpbody .wrap h1").after(div);
32
  setTimeout(function(){
@@ -46,7 +44,8 @@ jQuery(document).ready(function ($) {
46
  dataType:'json',
47
  method:'POST',
48
  data:{
49
- action:'breeze_purge_file'
 
50
  },
51
  success : function(res){
52
  current = location.href;
@@ -61,31 +60,6 @@ jQuery(document).ready(function ($) {
61
  });
62
  }
63
 
64
- function breeze_purgeDatabase_callAjax(){
65
- $.ajax({
66
- url:ajaxurl,
67
- dataType:'json',
68
- method:'POST',
69
- data:{
70
- action:'breeze_purge_database'
71
- },
72
- success : function(res){
73
- current = location.href;
74
- if(res.clear){
75
- var div = '<div id="message" class="notice notice-success" style="margin-top:10px; margin-bottom:10px;padding: 10px;"><strong>OK! Database cleanup successful</strong></div>';
76
- //backend
77
- $("#wpbody .wrap h1").after(div);
78
- setTimeout(function(){
79
- location.reload();
80
- },2000);
81
- }else{
82
- window.location.href = current+ "breeze-msg=purge-fail";
83
- location.reload();
84
- }
85
- }
86
- });
87
- }
88
-
89
  function getParameterByName(name, url) {
90
  if (!url) url = window.location.href;
91
  name = name.replace(/[\[\]]/g, "\\$&");
@@ -106,9 +80,9 @@ jQuery(document).ready(function ($) {
106
  var div = '';
107
  if(url.indexOf("msg=success-cleancache") > 0 && !isNaN(fileClean) ) {
108
  if(fileClean > 0){
109
- div = '<div id="message" class="notice notice-success" style="margin-top:10px; margin-bottom:10px;padding: 10px;"><strong>OK cache is clean: '+fileClean+'Kb cleaned</strong></div>';
110
  }else{
111
- div = '<div id="message" class="notice notice-success" style="margin-top:10px; margin-bottom:10px;padding: 10px;"><strong>OK ! Cache file cleaned successfully</strong></div>';
112
 
113
  }
114
 
@@ -126,5 +100,7 @@ jQuery(document).ready(function ($) {
126
 
127
  });
128
 
129
-
 
 
130
  });
6
  $('#wp-admin-bar-breeze-purge-file-group').click(function(){
7
  breeze_purgeFile_callAjax();
8
  });
 
 
 
9
  // Varnish clear button
10
  $('#purge-varnish-button').click(function(){
11
  breeze_purgeVarnish_callAjax();
18
  dataType:'json',
19
  method:'POST',
20
  data:{
21
+ action:'breeze_purge_varnish',
22
+ security : breeze_token_name.breeze_purge_varnish
23
  },
24
  success : function(res){
25
  current = location.href;
26
  if(res.clear){
27
+ var div = '<div id="message" class="notice notice-success" style="margin-top:10px; margin-bottom:10px;padding: 10px;"><strong>Varnish Cache has been purged.</strong></div>';
28
  //backend
29
  $("#wpbody .wrap h1").after(div);
30
  setTimeout(function(){
44
  dataType:'json',
45
  method:'POST',
46
  data:{
47
+ action:'breeze_purge_file',
48
+ security : breeze_token_name.breeze_purge_cache
49
  },
50
  success : function(res){
51
  current = location.href;
60
  });
61
  }
62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  function getParameterByName(name, url) {
64
  if (!url) url = window.location.href;
65
  name = name.replace(/[\[\]]/g, "\\$&");
80
  var div = '';
81
  if(url.indexOf("msg=success-cleancache") > 0 && !isNaN(fileClean) ) {
82
  if(fileClean > 0){
83
+ div = '<div id="message" class="notice notice-success" style="margin-top:10px; margin-bottom:10px;padding: 10px;"><strong>Internal cache has been purged: '+fileClean+'Kb cleaned</strong></div>';
84
  }else{
85
+ div = '<div id="message" class="notice notice-success" style="margin-top:10px; margin-bottom:10px;padding: 10px;"><strong>Internal cache has been purged.</strong></div>';
86
 
87
  }
88
 
100
 
101
  });
102
 
103
+ $('#breeze-hide-install-msg').unbind('click').click(function () {
104
+ $(this).closest('div.notice').fadeOut();
105
+ })
106
  });
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.0
6
  * Text Domain: breeze
7
  * Domain Path: /languages
8
  * Author: Cloudways
@@ -13,7 +13,7 @@
13
  /**
14
  * @copyright 2017 Cloudways https://www.cloudways.com
15
  *
16
- * Original development of this plugin by JoomUnited https://www.joomunited.com/
17
  *
18
  * This program is free software; you can redistribute it and/or modify
19
  * it under the terms of the GNU General Public License as published by
@@ -35,7 +35,7 @@ defined('ABSPATH') || die('No direct script access allowed!');
35
  if (!defined('BREEZE_PLUGIN_DIR'))
36
  define('BREEZE_PLUGIN_DIR', plugin_dir_path(__FILE__));
37
  if (!defined('BREEZE_VERSION'))
38
- define('BREEZE_VERSION','1.0.0');
39
  if (!defined('BREEZE_SITEURL'))
40
  define('BREEZE_SITEURL', get_site_url());
41
  if (!defined('BREEZE_MINIFICATION_CACHE'))
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.1-beta
6
  * Text Domain: breeze
7
  * Domain Path: /languages
8
  * Author: Cloudways
13
  /**
14
  * @copyright 2017 Cloudways https://www.cloudways.com
15
  *
16
+ * This plugin is inspired from WP Speed of Light by JoomUnited.
17
  *
18
  * This program is free software; you can redistribute it and/or modify
19
  * it under the terms of the GNU General Public License as published by
35
  if (!defined('BREEZE_PLUGIN_DIR'))
36
  define('BREEZE_PLUGIN_DIR', plugin_dir_path(__FILE__));
37
  if (!defined('BREEZE_VERSION'))
38
+ define('BREEZE_VERSION','1.0.1');
39
  if (!defined('BREEZE_SITEURL'))
40
  define('BREEZE_SITEURL', get_site_url());
41
  if (!defined('BREEZE_MINIFICATION_CACHE'))
inc/breeze-admin.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * @copyright 2017 Cloudways https://www.cloudways.com
4
  *
5
- * Original development of this plugin by JoomUnited https://www.joomunited.com/
6
  *
7
  * This program is free software; you can redistribute it and/or modify
8
  * it under the terms of the GNU General Public License as published by
@@ -30,6 +30,15 @@ class Breeze_Admin {
30
  //register menu
31
  add_action('admin_menu', array($this, 'register_menu_page'));
32
 
 
 
 
 
 
 
 
 
 
33
  $config = get_option('breeze_basic_settings');
34
 
35
  if(isset($config['breeze-display-clean']) && $config['breeze-display-clean']){
@@ -73,7 +82,17 @@ class Breeze_Admin {
73
  }
74
  }
75
 
76
- function loadAdminScripts() {
 
 
 
 
 
 
 
 
 
 
77
  wp_enqueue_script('jquery');
78
  wp_enqueue_script('breeze-backend', plugins_url('assets/js/breeze-backend.js', dirname(__FILE__)), array('jquery'), BREEZE_VERSION, true);
79
  $current_screen = get_current_screen();
@@ -83,6 +102,14 @@ class Breeze_Admin {
83
  //js
84
  wp_enqueue_script('breeze-configuration', plugins_url('assets/js/breeze-configuration.js', dirname(__FILE__)), array('jquery'), BREEZE_VERSION, true);
85
  }
 
 
 
 
 
 
 
 
86
  }
87
 
88
  /**
@@ -137,7 +164,7 @@ class Breeze_Admin {
137
  // add child item (Purge Modules)
138
  $args = array(
139
  'id' => 'breeze-purge-varnish-group',
140
- 'title' => esc_html(__('Purge Varnish', 'breeze')),
141
  'href' => '#',
142
  'parent' => 'breeze-purge-modules',
143
  );
@@ -146,16 +173,7 @@ class Breeze_Admin {
146
  // add child item (Purge Modules)
147
  $args = array(
148
  'id' => 'breeze-purge-file-group',
149
- 'title' => esc_html(__('Purge File', 'breeze')),
150
- 'href' => '#',
151
- 'parent' => 'breeze-purge-modules',
152
- );
153
- $wp_admin_bar->add_node( $args );
154
-
155
- // add child item (Purge Modules)
156
- $args = array(
157
- 'id' => 'breeze-purge-database-group',
158
- 'title' => esc_html(__('Purge Database', 'breeze')),
159
  'href' => '#',
160
  'parent' => 'breeze-purge-modules',
161
  );
@@ -182,6 +200,17 @@ class Breeze_Admin {
182
  );
183
  $wp_admin_bar->add_node( $args );
184
 
 
 
 
 
 
 
 
 
 
 
 
185
  }
186
  }
187
 
@@ -199,8 +228,8 @@ class Breeze_Admin {
199
  //ajax admin
200
  function ajaxHandle() {
201
  add_action('wp_ajax_breeze_purge_varnish', array('Breeze_Configuration', 'purge_varnish_action'));
202
- add_action('wp_ajax_breeze_purge_file', array('Breeze_Configuration', 'ajax_clean_cache'));
203
- add_action('wp_ajax_breeze_purge_database', array('Breeze_Configuration', 'ajax_purge_database'));
204
  }
205
  /*
206
  * Register active plugin hook
@@ -321,4 +350,4 @@ class Breeze_Admin {
321
  }
322
  }
323
 
324
- $admin = new Breeze_Admin();
2
  /**
3
  * @copyright 2017 Cloudways https://www.cloudways.com
4
  *
5
+ * This plugin is inspired from WP Speed of Light by JoomUnited.
6
  *
7
  * This program is free software; you can redistribute it and/or modify
8
  * it under the terms of the GNU General Public License as published by
30
  //register menu
31
  add_action('admin_menu', array($this, 'register_menu_page'));
32
 
33
+ // Add notice when installing plugin
34
+ $first_install = get_option('breeze_first_install');
35
+ if ($first_install === false) {
36
+ add_option('breeze_first_install', 'yes');
37
+ }
38
+ if ($first_install == 'yes') {
39
+ add_action('admin_notices', array($this, 'installing_notices'));
40
+ }
41
+
42
  $config = get_option('breeze_basic_settings');
43
 
44
  if(isset($config['breeze-display-clean']) && $config['breeze-display-clean']){
82
  }
83
  }
84
 
85
+ // Add notice message when install plugin
86
+ public function installing_notices() {
87
+ $class = 'notice notice-success';
88
+ $message = __('Thanks for installing Breeze. It is always recommended not to use more than one caching plugin at the same time. We recommend you to purge cache if necessary.', 'breeze');
89
+
90
+ printf( '<div class="%1$s"><p>%2$s <button class="button" id="breeze-hide-install-msg">'.__("Hide message", "breeze").'</button></p></div>', esc_attr( $class ), esc_html( $message ));
91
+ update_option('breeze_first_install', 'no');
92
+ }
93
+
94
+
95
+ function loadAdminScripts() {
96
  wp_enqueue_script('jquery');
97
  wp_enqueue_script('breeze-backend', plugins_url('assets/js/breeze-backend.js', dirname(__FILE__)), array('jquery'), BREEZE_VERSION, true);
98
  $current_screen = get_current_screen();
102
  //js
103
  wp_enqueue_script('breeze-configuration', plugins_url('assets/js/breeze-configuration.js', dirname(__FILE__)), array('jquery'), BREEZE_VERSION, true);
104
  }
105
+
106
+ $token_name = array(
107
+ 'breeze_purge_varnish' => wp_create_nonce("_breeze_purge_varnish"),
108
+ 'breeze_purge_database' => wp_create_nonce("_breeze_purge_database"),
109
+ 'breeze_purge_cache' => wp_create_nonce("_breeze_purge_cache")
110
+ );
111
+
112
+ wp_localize_script('breeze-backend','breeze_token_name',$token_name);
113
  }
114
 
115
  /**
164
  // add child item (Purge Modules)
165
  $args = array(
166
  'id' => 'breeze-purge-varnish-group',
167
+ 'title' => esc_html(__('Purge Varnish Cache', 'breeze')),
168
  'href' => '#',
169
  'parent' => 'breeze-purge-modules',
170
  );
173
  // add child item (Purge Modules)
174
  $args = array(
175
  'id' => 'breeze-purge-file-group',
176
+ 'title' => esc_html(__('Purge Internal Cache', 'breeze')),
 
 
 
 
 
 
 
 
 
177
  'href' => '#',
178
  'parent' => 'breeze-purge-modules',
179
  );
200
  );
201
  $wp_admin_bar->add_node( $args );
202
 
203
+ // add feedback item
204
+ $args = array(
205
+ 'id' => 'breeze-feedback',
206
+ 'title' => esc_html(__('Feedback', 'breeze')),
207
+ 'href' => 'https://www.surveymonkey.com/r/YNV2XVL',
208
+ 'parent' => 'breeze-topbar',
209
+ 'meta' => array( 'class' => 'breeze-toolbar-group',
210
+ 'target' => '_blank'),
211
+ );
212
+ $wp_admin_bar->add_node( $args );
213
+
214
  }
215
  }
216
 
228
  //ajax admin
229
  function ajaxHandle() {
230
  add_action('wp_ajax_breeze_purge_varnish', array('Breeze_Configuration', 'purge_varnish_action'));
231
+ add_action('wp_ajax_breeze_purge_file', array('Breeze_Configuration', 'breeze_ajax_clean_cache'));
232
+ add_action('wp_ajax_breeze_purge_database', array('Breeze_Configuration', 'breeze_ajax_purge_database'));
233
  }
234
  /*
235
  * Register active plugin hook
350
  }
351
  }
352
 
353
+ $admin = new Breeze_Admin();
inc/breeze-configuration.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * @copyright 2017 Cloudways https://www.cloudways.com
4
  *
5
- * Original development of this plugin by JoomUnited https://www.joomunited.com/
6
  *
7
  * This program is free software; you can redistribute it and/or modify
8
  * it under the terms of the GNU General Public License as published by
@@ -400,7 +400,7 @@ class Breeze_Configuration{
400
  return $output;
401
  }
402
  //ajax clean cache
403
- public static function ajax_clean_cache($check = false) {
404
  $size_cache = 0;
405
  $size_css_cache = 0;
406
  $size_js_cache = 0;
@@ -475,15 +475,28 @@ class Breeze_Configuration{
475
  //delete all cache
476
  Breeze_PurgeCache::breeze_cache_flush();
477
 
478
- if($check){
479
- return $result;
480
- }
 
 
 
 
 
 
 
 
481
 
482
  echo json_encode($result);
483
  exit;
484
  }
485
-
 
 
486
  public static function purge_varnish_action(){
 
 
 
487
  $homepage = home_url().'/?breeze';
488
  $main = new Breeze_PurgeVarnish();
489
  $main->purge_cache($homepage);
@@ -491,8 +504,13 @@ class Breeze_Configuration{
491
  echo json_encode(array('clear' => true));
492
  exit;
493
  }
 
 
 
 
 
 
494
 
495
- public static function ajax_purge_database(){
496
  $type = array('revisions','drafted','trash','comments','trackbacks','transient');
497
  foreach ($type as $item){
498
  self::cleanSystem($item);
2
  /**
3
  * @copyright 2017 Cloudways https://www.cloudways.com
4
  *
5
+ * This plugin is inspired from WP Speed of Light by JoomUnited.
6
  *
7
  * This program is free software; you can redistribute it and/or modify
8
  * it under the terms of the GNU General Public License as published by
400
  return $output;
401
  }
402
  //ajax clean cache
403
+ public static function breeze_clean_cache() {
404
  $size_cache = 0;
405
  $size_css_cache = 0;
406
  $size_js_cache = 0;
475
  //delete all cache
476
  Breeze_PurgeCache::breeze_cache_flush();
477
 
478
+ return $result;
479
+ }
480
+
481
+ /*
482
+ *Ajax clean cache
483
+ *
484
+ */
485
+ public static function breeze_ajax_clean_cache(){
486
+ //check security nonce
487
+ check_ajax_referer( '_breeze_purge_cache', 'security' );
488
+ $result = self::breeze_clean_cache();
489
 
490
  echo json_encode($result);
491
  exit;
492
  }
493
+ /*
494
+ * Ajax purge varnish
495
+ */
496
  public static function purge_varnish_action(){
497
+ //check security
498
+ check_ajax_referer( '_breeze_purge_varnish', 'security' );
499
+
500
  $homepage = home_url().'/?breeze';
501
  $main = new Breeze_PurgeVarnish();
502
  $main->purge_cache($homepage);
504
  echo json_encode(array('clear' => true));
505
  exit;
506
  }
507
+ /*
508
+ * Ajax purge database
509
+ */
510
+ public static function breeze_ajax_purge_database(){
511
+ //check security
512
+ check_ajax_referer( '_breeze_purge_database', 'security' );
513
 
 
514
  $type = array('revisions','drafted','trash','comments','trackbacks','transient');
515
  foreach ($type as $item){
516
  self::cleanSystem($item);
inc/cache/purge-varnish.php CHANGED
@@ -103,12 +103,12 @@ class Breeze_PurgeVarnish {
103
  //clear varnish cache
104
  $this->purge_cache($homepage);
105
  //clear static cache
106
- $size_cache = Breeze_Configuration::ajax_clean_cache($_GET['breeze_purge']);
107
 
108
  if((int)$size_cache > 0){
109
- echo '<div id="message-clear-cache-top" style="margin: 10px 0px 10px 0;padding: 10px;" class="notice notice-success" ><strong>'.__('OK ! Cache is cleaned: ','breeze') .$size_cache.__(' Kb static cache cleaned','breeze').'</strong></div>';
110
  }else{
111
- echo '<div id="message-clear-cache-top" style="margin: 10px 0px 10px 0;padding: 10px;" class="notice notice-success" ><strong>'.__('OK ! Cache file cleaned successfully','breeze').'</strong></div>';
112
  }
113
  }
114
  }
103
  //clear varnish cache
104
  $this->purge_cache($homepage);
105
  //clear static cache
106
+ $size_cache = Breeze_Configuration::breeze_clean_cache();
107
 
108
  if((int)$size_cache > 0){
109
+ echo '<div id="message-clear-cache-top" style="margin: 10px 0px 10px 0;padding: 10px;" class="notice notice-success" ><strong>'.__('Cache data has been purged: ','breeze') .$size_cache.__(' Kb static cache cleaned','breeze').'</strong></div>';
110
  }else{
111
+ echo '<div id="message-clear-cache-top" style="margin: 10px 0px 10px 0;padding: 10px;" class="notice notice-success" ><strong>'.__('Cache data has been purged.','breeze').'</strong></div>';
112
  }
113
  }
114
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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
6
- Stable tag: 1.0.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -13,11 +13,13 @@ Breeze is a WordPress Caching Plugin developed by Cloudways. Breeze uses advance
13
 
14
  Breeze is a free, simple (yet powerful) and user-friendly WordPress Caching Plugin developed by the Cloudways team. It offers various options to optimize WordPress performance at various levels. It works equally great with WordPress, WordPress with WooCommerce and WordPress Multisite.
15
 
 
 
16
  Breeze excels in the following areas:
17
 
18
  * **Performance:** Breeze improves website speed and resource optimization. Other features include file level cache system, database cleanup, minification, support for Varnish cache and simplified CDN integration options.
19
 
20
- * **Convenience:** Breeze is easy to install and configure directly from WordPress. Configuring Breeze is easy and most of the default options work well right out of the box. The recommended settings should work on all your WordPress websites seamlessly.
21
 
22
  * **Simplicity:** Breeze is designed to be simple for all users. Just install and activate the plugin and you'll see the results instantaneously.
23
 
@@ -25,9 +27,7 @@ What makes Breeze WordPress Cache Plugin awesome is that it comes with builtin s
25
 
26
  **Support:** We love to provide support! Post your questions on the WordPress.org support forums, or if you are a Cloudways Customer you may ask questions on the <a href="https://community.cloudways.com/">Cloudways Community Forum</a>.
27
 
28
- **Note:** This plugin is still in Beta phase and this plugin is tested on Cloudways WordPress hosting servers.
29
-
30
-
31
 
32
  == Installation ==
33
 
@@ -89,7 +89,7 @@ Breeze supports CDN integration. It allows all static assets (such as images, CS
89
 
90
  = What does Breeze's Database Optimization feature do? =
91
 
92
- WordPress databases are notorious for storing information like post revisions, spam comments and much more. Over time, databases l become bloated and it is a good practice to clear out unwanted information to reduce database size and improve optimization.
93
 
94
  Breeze's database optimization cleans out unwanted information in a single click.
95
 
@@ -101,7 +101,7 @@ Comments will appear upon moderation as per the comment system (or policy) set i
101
 
102
  You can exclude a file by mentioning its URL or file type (by mentioning file extension) in the exclude fields (available in the Breeze settings). Exclude will not let the cache impact that URL or file type.
103
 
104
- If Varnish is active, you will need to exclude URLs and file type(s) in the Varnish configuration. If you are hosting WordPress websites on Cloudways servers, follow <a href="https://support.cloudways.com/how-to-exclude-url-from-varnish/">this KB to exclude URLs from the Varnish cache</a>.
105
 
106
 
107
  = Does it work with all hosting providers? =
@@ -110,12 +110,16 @@ Breeze is in Beta phase and has not yet been tested on hosting providers other t
110
  However, major Breeze options such as Gzip, browser cache, minification, grouping, database optimization. CDN integration will work as expected on other hosting providers.
111
 
112
 
113
- = Where can I get support for Breeze? =
114
 
115
  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>.
116
 
117
  == Changelog ==
118
 
 
 
 
 
119
  = 1.0.0 =
120
  * Add : First Beta release
121
 
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
6
+ Stable tag: 1.0.1-beta
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
13
 
14
  Breeze is a free, simple (yet powerful) and user-friendly WordPress Caching Plugin developed by the Cloudways team. It offers various options to optimize WordPress performance at various levels. It works equally great with WordPress, WordPress with WooCommerce and WordPress Multisite.
15
 
16
+ **Breeze is in beta phase, therefore we recommend testing it on a Staging website before deploying on a live website.**
17
+
18
  Breeze excels in the following areas:
19
 
20
  * **Performance:** Breeze improves website speed and resource optimization. Other features include file level cache system, database cleanup, minification, support for Varnish cache and simplified CDN integration options.
21
 
22
+ * **Convenience:** Breeze is easy to install and configure directly from WordPress. Configuring Breeze is easy and most of the default options work well right out of the box. The recommended settings should work on all your WordPress websites seamlessly.
23
 
24
  * **Simplicity:** Breeze is designed to be simple for all users. Just install and activate the plugin and you'll see the results instantaneously.
25
 
27
 
28
  **Support:** We love to provide support! Post your questions on the WordPress.org support forums, or if you are a Cloudways Customer you may ask questions on the <a href="https://community.cloudways.com/">Cloudways Community Forum</a>.
29
 
30
+ **Special Thanks:** We would like to give special mention to WP Speed Of Light for being an inspiration for Breeze.
 
 
31
 
32
  == Installation ==
33
 
89
 
90
  = What does Breeze's Database Optimization feature do? =
91
 
92
+ WordPress databases are notorious for storing information like post revisions, spam comments and much more. Over time, databases l become bloated and it is a good practice to clear out unwanted information to reduce database size and improve optimization.
93
 
94
  Breeze's database optimization cleans out unwanted information in a single click.
95
 
101
 
102
  You can exclude a file by mentioning its URL or file type (by mentioning file extension) in the exclude fields (available in the Breeze settings). Exclude will not let the cache impact that URL or file type.
103
 
104
+ If Varnish is active, you will need to exclude URLs and file type(s) in the Varnish configuration. If you are hosting WordPress websites on Cloudways servers, follow <a href="https://support.cloudways.com/how-to-exclude-url-from-varnish/">this KB to exclude URLs from the Varnish cache</a>.
105
 
106
 
107
  = Does it work with all hosting providers? =
110
  However, major Breeze options such as Gzip, browser cache, minification, grouping, database optimization. CDN integration will work as expected on other hosting providers.
111
 
112
 
113
+ = Where can I get support for Breeze? =
114
 
115
  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>.
116
 
117
  == Changelog ==
118
 
119
+ = 1.0.1-beta =
120
+ * Fix : Purging issue to allow only admin users to Purge
121
+ * Add : feedback link
122
+
123
  = 1.0.0 =
124
  * Add : First Beta release
125
 
views/breeze-setting-views.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  $tabs = array(
3
- 'basic' => __('Basic options', 'breeze'),
4
- 'advanced' => __('Advanced options', 'breeze'),
5
- 'database' => __('Database', 'breeze'),
6
  'cdn' => __('CDN', 'breeze'),
7
- 'varnish' => __('Varnish', 'breeze'),
8
  );
9
  ?>
10
  <?php if (isset($_REQUEST['database-cleanup']) && $_REQUEST['database-cleanup'] == 'success'): ?>
@@ -15,13 +15,19 @@ $tabs = array(
15
  <div id="message-save-settings" class="notice notice-success" style="margin: 10px 0px 10px 0;padding: 10px;"><strong><?php _e('Configuration settings saved', 'breeze'); ?></strong></div>
16
  <?php endif; ?>
17
  <div class="wrap breeze-main">
18
- <div class="breeze-header" style="display: none"><a href="https://www.cloudways.com" target="_blank">
 
19
  <div class="breeze-logo"></div>
20
- <label class="breeze-logo-title"><?php _e('CLOUDWAYS', 'breeze'); ?></label>
21
  </a>
22
  </div>
 
 
 
 
 
 
 
23
  <div style="clear: both"></div>
24
- <h1 style="padding: 0;font-size: 30px"><?php _e("Breeze - WordPress Cache Settings", 'breeze'); ?></h1>
25
 
26
  <ul id="breeze-tabs" class="nav-tab-wrapper">
27
  <?php
@@ -56,4 +62,4 @@ $tabs = array(
56
  }
57
  ?>
58
  </div>
59
- </div>
1
  <?php
2
  $tabs = array(
3
+ 'basic' => __('BASIC OPTIONS', 'breeze'),
4
+ 'advanced' => __('ADVANCED OPTIONS', 'breeze'),
5
+ 'database' => __('DATABASE', 'breeze'),
6
  'cdn' => __('CDN', 'breeze'),
7
+ 'varnish' => __('VARNISH', 'breeze'),
8
  );
9
  ?>
10
  <?php if (isset($_REQUEST['database-cleanup']) && $_REQUEST['database-cleanup'] == 'success'): ?>
15
  <div id="message-save-settings" class="notice notice-success" style="margin: 10px 0px 10px 0;padding: 10px;"><strong><?php _e('Configuration settings saved', 'breeze'); ?></strong></div>
16
  <?php endif; ?>
17
  <div class="wrap breeze-main">
18
+ <div class="breeze-header">
19
+ <a href="https://www.cloudways.com" target="_blank">
20
  <div class="breeze-logo"></div>
 
21
  </a>
22
  </div>
23
+
24
+ <div class="breeze-desc" style="margin-bottom: 10px">
25
+ <span><?php _e('This plugin is in Beta phase. Please feel free to report any issues on the WordPress Support Forums or on', 'breeze'); ?></span>
26
+ <a href="https://community.cloudways.com/" target="_blank"><?php _e('Cloudways Community Forum', 'breeze') ?></a>
27
+ </div>
28
+ <h1></h1>
29
+
30
  <div style="clear: both"></div>
 
31
 
32
  <ul id="breeze-tabs" class="nav-tab-wrapper">
33
  <?php
62
  }
63
  ?>
64
  </div>
65
+ </div>
views/tabs/advanced.php CHANGED
@@ -13,7 +13,7 @@
13
  echo esc_textarea($output);
14
  } ?></textarea>
15
  <br>
16
- <label class="breeze_tool_tip"><b>Note:&nbsp;</b><?php _e('Add URLs per line of pages that you want to exclude from the WordPress internal cache. To exclude URLs from Varnish cache, please refer to ', 'breeze') ?><a href="https://support.cloudways.com/how-to-exclude-url-from-varnish/" target="_blank"><?php _e('this KB','breeze')?></a></a> </label>
17
  </td>
18
  </tr>
19
  <tr>
@@ -32,8 +32,8 @@
32
  </li>
33
  <li>
34
  <label class="breeze_tool_tip">
35
- <b>Note:&nbsp;</b><?php _e('Group CSS, JS files to combine them into single file. This will reduce the number of HTTP requests to your server.', 'breeze') ?><br>
36
- <b><?php _e('Enable Minification to be able to use Group option','breeze')?></b>
37
  </label>
38
  </li>
39
  </ul>
@@ -67,4 +67,4 @@
67
  <label class="breeze_tool_tip"><b>Note:&nbsp;</b><?php _e('Use this option to exclude JS files from Minification and Grouping. Enter the URLs of JS files on each line.', 'breeze') ?></label>
68
  </td>
69
  </tr>
70
- </table>
13
  echo esc_textarea($output);
14
  } ?></textarea>
15
  <br>
16
+ <label class="breeze_tool_tip"><b>Note:&nbsp;</b><?php _e('Add the URLs of the pages (one per line) you wish to exclude from the WordPress internal cache. To exclude URLs from the Varnish cache, please refer to this ', 'breeze') ?><a href="https://support.cloudways.com/how-to-exclude-url-from-varnish/" target="_blank"><?php _e('Knowledge Base','breeze')?></a><?php _e(' article.','breeze')?> </label>
17
  </td>
18
  </tr>
19
  <tr>
32
  </li>
33
  <li>
34
  <label class="breeze_tool_tip">
35
+ <b>Note:&nbsp;</b><?php _e('Group CSS and JS files to combine them into a single file. This will reduce the number of HTTP requests to your server.', 'breeze') ?><br>
36
+ <b><?php _e('Important: Enable Minification to use this option.','breeze')?></b>
37
  </label>
38
  </li>
39
  </ul>
67
  <label class="breeze_tool_tip"><b>Note:&nbsp;</b><?php _e('Use this option to exclude JS files from Minification and Grouping. Enter the URLs of JS files on each line.', 'breeze') ?></label>
68
  </td>
69
  </tr>
70
+ </table>
views/tabs/basic.php CHANGED
@@ -48,7 +48,7 @@ $basic = get_option('breeze_basic_settings');
48
  <label class="breeze_tool_tip"><?php _e('JS', 'breeze') ?></label>
49
  </li>
50
  <li>
51
- <label><?php _e('Use the above options to minify HTML, CSS, or JS files.', 'breeze') ?></label>
52
  <br>
53
  <label><b>Note:&nbsp;</b>
54
  <span style="color: #ff0000"><?php _e('We recommend testing minification on a staging website before deploying it on a live website. Minification is known to cause issues on the frontend.', 'breeze') ?></span>
@@ -103,4 +103,4 @@ $basic = get_option('breeze_basic_settings');
103
  </select>
104
  </td>
105
  </tr>
106
- </table>
48
  <label class="breeze_tool_tip"><?php _e('JS', 'breeze') ?></label>
49
  </li>
50
  <li>
51
+ <label><?php _e('Check the above boxes to minify HTML, CSS, or JS files.', 'breeze') ?></label>
52
  <br>
53
  <label><b>Note:&nbsp;</b>
54
  <span style="color: #ff0000"><?php _e('We recommend testing minification on a staging website before deploying it on a live website. Minification is known to cause issues on the frontend.', 'breeze') ?></span>
103
  </select>
104
  </td>
105
  </tr>
106
+ </table>
views/tabs/database.php CHANGED
@@ -1,5 +1,5 @@
1
  <div class="breeze-top-notice">
2
- <label class="breeze_tool_tip"><?php _e('It is recommended to backup your Database before using the following options.','breeze')?></label>
3
  </div>
4
  <table cellspacing="15">
5
  <tr>
@@ -17,7 +17,7 @@
17
  </td>
18
  <td>
19
  <input type="checkbox" id="data1" name="clean[]" class="clean-data" value="revisions"/>
20
- <label class="breeze_tool_tip"><?php _e('Use this option to clear out post revisions from your WordPress database.','breeze')?></label>
21
  </td>
22
  </tr>
23
  <tr>
@@ -26,7 +26,7 @@
26
  </td>
27
  <td>
28
  <input type="checkbox" id="data2" name="clean[]" class="clean-data" value="drafted"/>
29
- <label class="breeze_tool_tip"><?php _e('Use this option to delete the auto saved drafts from WordPress database.','breeze')?></label>
30
  </td>
31
  </tr>
32
  <tr>
@@ -35,7 +35,7 @@
35
  </td>
36
  <td>
37
  <input type="checkbox" id="data3" name="clean[]" class="clean-data" value="trash"/>
38
- <label class="breeze_tool_tip"><?php _e('Use this option to delete the trashed content from WordPress database.','breeze')?></label>
39
 
40
  </td>
41
  </tr>
@@ -45,7 +45,7 @@
45
  </td>
46
  <td>
47
  <input type="checkbox" id="data4" name="clean[]" class="clean-data" value="comments"/>
48
- <label class="breeze_tool_tip"><?php _e('Use this option to cleanup trash and spam comments from WordPress database.','breeze')?></label>
49
  </td>
50
  </tr>
51
  <tr>
@@ -54,7 +54,7 @@
54
  </td>
55
  <td>
56
  <input type="checkbox" id="data5" name="clean[]" class="clean-data" value="trackbacks"/>
57
- <label class="breeze_tool_tip"><?php _e('Cleanup Transients and Pingbacks from the WordPress database.','breeze')?></label>
58
  </td>
59
  </tr>
60
  <tr>
@@ -63,7 +63,7 @@
63
  </td>
64
  <td>
65
  <input type="checkbox" id="data6" name="clean[]" class="clean-data" value="transient"/>
66
- <label class="breeze_tool_tip"><?php _e('Cleanup expired and active Transients from WordPress.','breeze')?></label>
67
  </td>
68
  </tr>
69
- </table>
1
  <div class="breeze-top-notice">
2
+ <label class="breeze_tool_tip"><?php _e('Important: Backup your databases before using the following options!','breeze')?></label>
3
  </div>
4
  <table cellspacing="15">
5
  <tr>
17
  </td>
18
  <td>
19
  <input type="checkbox" id="data1" name="clean[]" class="clean-data" value="revisions"/>
20
+ <label class="breeze_tool_tip"><?php _e('Use this option to delete all post revisions from the WordPress database.','breeze')?></label>
21
  </td>
22
  </tr>
23
  <tr>
26
  </td>
27
  <td>
28
  <input type="checkbox" id="data2" name="clean[]" class="clean-data" value="drafted"/>
29
+ <label class="breeze_tool_tip"><?php _e('Use this option to delete auto saved drafts from the WordPress database.','breeze')?></label>
30
  </td>
31
  </tr>
32
  <tr>
35
  </td>
36
  <td>
37
  <input type="checkbox" id="data3" name="clean[]" class="clean-data" value="trash"/>
38
+ <label class="breeze_tool_tip"><?php _e('Use this option to delete all trashed content from the WordPress database.','breeze')?></label>
39
 
40
  </td>
41
  </tr>
45
  </td>
46
  <td>
47
  <input type="checkbox" id="data4" name="clean[]" class="clean-data" value="comments"/>
48
+ <label class="breeze_tool_tip"><?php _e('Use this option to delete trash and spam comments from the WordPress database.','breeze')?></label>
49
  </td>
50
  </tr>
51
  <tr>
54
  </td>
55
  <td>
56
  <input type="checkbox" id="data5" name="clean[]" class="clean-data" value="trackbacks"/>
57
+ <label class="breeze_tool_tip"><?php _e('Use this option to delete Trackbacks and Pingbacks from the WordPress database.','breeze')?></label>
58
  </td>
59
  </tr>
60
  <tr>
63
  </td>
64
  <td>
65
  <input type="checkbox" id="data6" name="clean[]" class="clean-data" value="transient"/>
66
+ <label class="breeze_tool_tip"><?php _e('Delete expired and active transients from the WordPress database.','breeze')?></label>
67
  </td>
68
  </tr>
69
+ </table>