Nginx Helper - Version 1.3.9

Version Description

  • Removed extraneous headers.
Download this release

Release Info

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

Code changes from version 1.3.8 to 1.3.9

Files changed (3) hide show
  1. nginx-helper.php +3 -5
  2. purger.php +0 -19
  3. readme.txt +6 -3
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.8
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  Requires at least: 3.0
@@ -13,7 +13,7 @@ namespace rtCamp\WP\Nginx {
13
  define( 'rtCamp\WP\Nginx\RT_WP_NGINX_HELPER_PATH', plugin_dir_path(__FILE__) );
14
  define( 'rtCamp\WP\Nginx\RT_WP_NGINX_HELPER_URL', plugin_dir_url(__FILE__) );
15
  class Helper{
16
- var $version = '1.0'; // Plugin version
17
  var $db_version = '0.1'; // DB version, change it to show the upgrade page
18
  var $minium_WP = '3.0';
19
  var $minimum_PHP = '5.3';
@@ -59,8 +59,6 @@ namespace rtCamp\WP\Nginx {
59
  add_action( 'transition_post_status', array(&$this, 'set_future_post_option_on_future_status'), 20, 3 );
60
  add_action( 'delete_post', array(&$this, 'unset_future_post_option_on_delete'), 20, 1 );
61
 
62
- add_action( 'wp_headers', array(&$rt_wp_nginx_purger, 'correctExpires'), 100, 1 );
63
-
64
  add_action( 'nm_check_log_file_size_daily', array(&$rt_wp_nginx_purger, 'checkAndTruncateLogFile'), 100, 1 );
65
 
66
  add_action( 'edit_attachment', array(&$rt_wp_nginx_purger, 'purgeImageOnEdit'), 100, 1 );
@@ -252,7 +250,7 @@ namespace rtCamp\WP\Nginx {
252
  "Cached using Nginx-Helper on ".current_time('mysql').". ".
253
  "It took ".get_num_queries()." queries executed in ".timer_stop()." seconds.".
254
  "-->\n".
255
- "<!--Visit http://wordpress.org/extend/plugins/nginx-helper/faq/ for more details-->\n";
256
  echo $timestamps;
257
  }
258
 
3
  Plugin Name: Nginx Helper
4
  Plugin URI: http://rtcamp.com/
5
  Description: An nginx helper that serves various functions.
6
+ Version: 1.3.9
7
  Author: rtCamp
8
  Author URI: http://rtcamp.com
9
  Requires at least: 3.0
13
  define( 'rtCamp\WP\Nginx\RT_WP_NGINX_HELPER_PATH', plugin_dir_path(__FILE__) );
14
  define( 'rtCamp\WP\Nginx\RT_WP_NGINX_HELPER_URL', plugin_dir_url(__FILE__) );
15
  class Helper{
16
+ var $version = '1.3.9'; // Plugin version
17
  var $db_version = '0.1'; // DB version, change it to show the upgrade page
18
  var $minium_WP = '3.0';
19
  var $minimum_PHP = '5.3';
59
  add_action( 'transition_post_status', array(&$this, 'set_future_post_option_on_future_status'), 20, 3 );
60
  add_action( 'delete_post', array(&$this, 'unset_future_post_option_on_delete'), 20, 1 );
61
 
 
 
62
  add_action( 'nm_check_log_file_size_daily', array(&$rt_wp_nginx_purger, 'checkAndTruncateLogFile'), 100, 1 );
63
 
64
  add_action( 'edit_attachment', array(&$rt_wp_nginx_purger, 'purgeImageOnEdit'), 100, 1 );
250
  "Cached using Nginx-Helper on ".current_time('mysql').". ".
251
  "It took ".get_num_queries()." queries executed in ".timer_stop()." seconds.".
252
  "-->\n".
253
+ "<!--Visit http://wordpress.org/extend/plugins/nginx-helper/faq/ for more details-->";
254
  echo $timestamps;
255
  }
256
 
purger.php CHANGED
@@ -2,25 +2,6 @@
2
  namespace rtCamp\WP\Nginx{
3
  class Purger {
4
 
5
- function correctExpires($http_headers) {
6
-
7
- global $rt_wp_nginx_helper;
8
-
9
- $cache_ttl = 600;
10
-
11
- $http_headers['X-Accel-Expires'] = $cache_ttl;
12
-
13
- if ($cache_ttl == 0) {
14
- $http_headers['X-NGINX-CACHED'] = "NO";
15
- } else {
16
- $http_headers['X-NGINX-CACHED'] = "YES - ".$cache_ttl." secs";
17
- $http_headers['X-NGINX-CACHED-AT'] = date('c');
18
- }
19
-
20
- return $http_headers;
21
-
22
- }
23
-
24
  function purgePostOnComment( $newstatus, $oldstatus, $comment ) {
25
 
26
  global $rt_wp_nginx_helper,$blog_id;
2
  namespace rtCamp\WP\Nginx{
3
  class Purger {
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  function purgePostOnComment( $newstatus, $oldstatus, $comment ) {
6
 
7
  global $rt_wp_nginx_helper,$blog_id;
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.8
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,9 @@ Its just that we are hyperactive on our own forum!
101
  2. Remaining settings
102
 
103
  == Changelog ==
 
 
 
104
  = 1.3.8 =
105
 
106
  * Fixed bug in single post/page/post-type purging code. Thanks to Greg for pointing this out here: http://rtcamp.com/support/topic/updating-post-nginx-helper-purge-cache-post/.
@@ -159,5 +162,5 @@ Its just that we are hyperactive on our own forum!
159
 
160
  == Upgrade Notice ==
161
 
162
- = 1.3.8 =
163
- Bug fix for single post/post type purge on edit.
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.9
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.9 =
105
+ * Removed extraneous headers.
106
+
107
  = 1.3.8 =
108
 
109
  * Fixed bug in single post/page/post-type purging code. Thanks to Greg for pointing this out here: http://rtcamp.com/support/topic/updating-post-nginx-helper-purge-cache-post/.
162
 
163
  == Upgrade Notice ==
164
 
165
+ = 1.3.9 =
166
+ Removed unnecessary headers being added.