Nginx Helper - Version 1.3.7

Version Description

  • Changed the action hook, back to 'shutdown' from 'wp_footer' to add verification comments.
  • Added a check to prevent adding comments to ajax requests,
Download this release

Release Info

Developer saurabhshukla
Plugin Icon 128x128 Nginx Helper
Version 1.3.7
Comparing to
See all releases

Code changes from version 1.3.6 to 1.3.7

Files changed (2) hide show
  1. nginx-helper.php +5 -3
  2. readme.txt +7 -2
nginx-helper.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Nginx Helper
4
  Plugin URI: http://rtcamp.com/
5
  Description: An nginx helper that serves various functions.
6
- Version: 1.3.6
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  Requires at least: 3.0
@@ -38,7 +38,7 @@ namespace rtCamp\WP\Nginx {
38
  function start_helper() {
39
 
40
  global $rt_wp_nginx_purger;
41
- add_action( 'wp_footer', array(&$this, 'add_timestamps'), 99999);
42
 
43
  add_action( 'publish_post', array(&$rt_wp_nginx_purger, 'purgePost'), 200, 1);
44
  add_action( 'publish_page', array(&$rt_wp_nginx_purger, 'purgePost'), 200, 1);
@@ -245,7 +245,9 @@ namespace rtCamp\WP\Nginx {
245
  }
246
  }
247
  function add_timestamps(){
 
248
  if($this->options['enable_purge']!=1) return;
 
249
  $timestamps = "\n<!--".
250
  "Cached using Nginx-Helper on ".current_time('mysql').". ".
251
  "It took ".get_num_queries()." queries executed in ".timer_stop()." seconds.".
@@ -348,4 +350,4 @@ namespace{
348
  }
349
  add_action('init','fetch_feeds');
350
  }
351
- ?>
3
  Plugin Name: Nginx Helper
4
  Plugin URI: http://rtcamp.com/
5
  Description: An nginx helper that serves various functions.
6
+ Version: 1.3.7
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  Requires at least: 3.0
38
  function start_helper() {
39
 
40
  global $rt_wp_nginx_purger;
41
+ add_action( 'shutdown', array(&$this, 'add_timestamps'), 99999);
42
 
43
  add_action( 'publish_post', array(&$rt_wp_nginx_purger, 'purgePost'), 200, 1);
44
  add_action( 'publish_page', array(&$rt_wp_nginx_purger, 'purgePost'), 200, 1);
245
  }
246
  }
247
  function add_timestamps(){
248
+ global $xrequest;
249
  if($this->options['enable_purge']!=1) return;
250
+ if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) return;
251
  $timestamps = "\n<!--".
252
  "Cached using Nginx-Helper on ".current_time('mysql').". ".
253
  "It took ".get_num_queries()." queries executed in ".timer_stop()." seconds.".
350
  }
351
  add_action('init','fetch_feeds');
352
  }
353
+ ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: rtcamp, rahul286, saurabhshukla
3
  Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, rewrite, permalinks
4
  Requires at least: 3.0
5
  Tested up to: 3.4.2
6
- Stable tag: 1.3.6
7
  License: GPLv2 or later (of-course)
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate Link: http://rtcamp.com/donate/
@@ -101,6 +101,11 @@ Its just that we are hyperactive on our own forum!
101
  2. Remaining settings
102
 
103
  == Changelog ==
 
 
 
 
 
104
  = 1.3.6 =
105
 
106
  * Changed the action hook, from 'shutdown' to 'wp_footer' to add verification comments. This was interfering with other plugins.
@@ -150,5 +155,5 @@ Its just that we are hyperactive on our own forum!
150
 
151
  == Upgrade Notice ==
152
 
153
- = 1.3.6 =
154
  Revised action hook for verification comments.
3
  Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, rewrite, permalinks
4
  Requires at least: 3.0
5
  Tested up to: 3.4.2
6
+ Stable tag: 1.3.7
7
  License: GPLv2 or later (of-course)
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate Link: http://rtcamp.com/donate/
101
  2. Remaining settings
102
 
103
  == Changelog ==
104
+ = 1.3.7 =
105
+
106
+ * Changed the action hook, back to 'shutdown' from 'wp_footer' to add verification comments.
107
+ * Added a check to prevent adding comments to ajax requests,
108
+
109
  = 1.3.6 =
110
 
111
  * Changed the action hook, from 'shutdown' to 'wp_footer' to add verification comments. This was interfering with other plugins.
155
 
156
  == Upgrade Notice ==
157
 
158
+ = 1.3.7 =
159
  Revised action hook for verification comments.