Nginx Helper - Version 1.9.10

Version Description

  • Fixed issue where Nginx cache folders deleted on purge. #123 - by johan-chassaing
  • Fixed Redis purge all feature for installation where WordPress lives in a separate folder. #130 - by pySilver
Download this release

Release Info

Developer bhargavbhandari90
Plugin Icon 128x128 Nginx Helper
Version 1.9.10
Comparing to
See all releases

Code changes from version 1.9.9 to 1.9.10

Files changed (4) hide show
  1. nginx-helper.php +2 -2
  2. purger.php +1 -1
  3. readme.txt +11 -6
  4. redis-purger.php +2 -2
nginx-helper.php CHANGED
@@ -3,12 +3,12 @@
3
  Plugin Name: Nginx Helper
4
  Plugin URI: https://rtcamp.com/nginx-helper/
5
  Description: Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does a few more things.
6
- Version: 1.9.9
7
  Author: rtCamp
8
  Author URI: https://rtcamp.com
9
  Text Domain: nginx-helper
10
  Requires at least: 3.0
11
- Tested up to: 4.7
12
  */
13
 
14
  namespace rtCamp\WP\Nginx {
3
  Plugin Name: Nginx Helper
4
  Plugin URI: https://rtcamp.com/nginx-helper/
5
  Description: Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does a few more things.
6
+ Version: 1.9.10
7
  Author: rtCamp
8
  Author URI: https://rtcamp.com
9
  Text Domain: nginx-helper
10
  Requires at least: 3.0
11
+ Tested up to: 4.7.3
12
  */
13
 
14
  namespace rtCamp\WP\Nginx {
purger.php CHANGED
@@ -778,7 +778,7 @@ namespace rtCamp\WP\Nginx {
778
  }
779
 
780
  if ( ! @unlink( $dir . '/' . $obj ) ) {
781
- $this->unlinkRecursive( $dir . '/' . $obj, true );
782
  }
783
  }
784
 
778
  }
779
 
780
  if ( ! @unlink( $dir . '/' . $obj ) ) {
781
+ $this->unlinkRecursive( $dir . '/' . $obj, false );
782
  }
783
  }
784
 
readme.txt CHANGED
@@ -1,12 +1,12 @@
1
  === Nginx Helper ===
2
  Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint
 
3
  Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks
4
- Requires at least: 3.0
5
- Tested up to: 4.7
6
- Stable tag: 1.9.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/
 
 
10
 
11
  Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does a few more things.
12
 
@@ -114,6 +114,10 @@ Please post your problem in [our free support forum](http://community.rtcamp.com
114
 
115
  == Changelog ==
116
 
 
 
 
 
117
  = 1.9.9 =
118
  * Fix wp_redirect issue. [#131](https://github.com/rtCamp/nginx-helper/pull/131) - by [matt-h](https://github.com/matt-h)
119
 
@@ -336,5 +340,6 @@ Fix url escaping [#82](https://github.com/rtCamp/nginx-helper/pull/82) - by
336
 
337
  == Upgrade Notice ==
338
 
339
- = 1.9.9 =
340
- * Fix wp_redirect issue. [#131](https://github.com/rtCamp/nginx-helper/pull/131) - by [matt-h](https://github.com/matt-h)
 
1
  === Nginx Helper ===
2
  Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123, ravanh, michaelbeil, samedwards, niwreg, entr, nuvoPoint
3
+ Donate Link: http://rtcamp.com/donate/
4
  Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks
 
 
 
5
  License: GPLv2 or later (of-course)
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
+ Requires at least: 3.0
8
+ Tested up to: 4.8
9
+ Stable tag: 1.9.10
10
 
11
  Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does a few more things.
12
 
114
 
115
  == Changelog ==
116
 
117
+ = 1.9.10 =
118
+ * Fixed issue where Nginx cache folders deleted on purge. [#123](https://github.com/rtCamp/nginx-helper/pull/123) - by [johan-chassaing](https://github.com/johan-chassaing)
119
+ * Fixed Redis purge all feature for installation where WordPress lives in a separate folder. [#130](https://github.com/rtCamp/nginx-helper/pull/130) - by [pySilver](https://github.com/pySilver)
120
+
121
  = 1.9.9 =
122
  * Fix wp_redirect issue. [#131](https://github.com/rtCamp/nginx-helper/pull/131) - by [matt-h](https://github.com/matt-h)
123
 
340
 
341
  == Upgrade Notice ==
342
 
343
+ = 1.9.10 =
344
+ * Fixed issue where Nginx cache folders deleted on purge. [#123](https://github.com/rtCamp/nginx-helper/pull/123) - by [johan-chassaing](https://github.com/johan-chassaing)
345
+ * Fixed Redis purge all feature for installation where WordPress lives in a separate folder. [#130](https://github.com/rtCamp/nginx-helper/pull/130) - by [pySilver](https://github.com/pySilver)
redis-purger.php CHANGED
@@ -681,10 +681,10 @@ namespace rtCamp\WP\Nginx {
681
  delete_keys_by_wildcard( $prefix . '*' );
682
  $this->log( '* Purged Everything! * ' );
683
  } else { // Else purge only site specific cache
684
- $parse = wp_parse_url( get_site_url() );
685
  $parse['path'] = empty( $parse['path'] ) ? '/' : $parse['path'];
686
  delete_keys_by_wildcard( $prefix . $parse['scheme'] . 'GET' . $parse['host'] . $parse['path'] . '*' );
687
- $this->log( '* ' . get_site_url() . ' Purged! * ' );
688
  }
689
 
690
  $this->log( '* * * * *' );
681
  delete_keys_by_wildcard( $prefix . '*' );
682
  $this->log( '* Purged Everything! * ' );
683
  } else { // Else purge only site specific cache
684
+ $parse = wp_parse_url( get_home_url() );
685
  $parse['path'] = empty( $parse['path'] ) ? '/' : $parse['path'];
686
  delete_keys_by_wildcard( $prefix . $parse['scheme'] . 'GET' . $parse['host'] . $parse['path'] . '*' );
687
+ $this->log( '* ' . get_home_url() . ' Purged! * ' );
688
  }
689
 
690
  $this->log( '* * * * *' );