Skip to content

Commit 58e6f0a

Browse files
authored
Merge pull request #239 from rtCamp/release/2.2.2
nginx-helper plugin release 2.2.2
2 parents 23305f0 + 3cd56e2 commit 58e6f0a

File tree

5 files changed

+193
-124
lines changed

5 files changed

+193
-124
lines changed

README.md

+74-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Nginx Helper #
22
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
33

4-
**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, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati, Joel-James, utkarshpatel, gsayed786, shashwatmittal, sudhiryadav, thrijith, stayallive, jaredwsmith, abhijitrakas
4+
**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, iam404, rittesh.patel, vishalkakadiya, BhargavBhandari90, vincent-lu, murrayjbrown, bryant1410, 1gor, matt-h, pySilver, johan-chassaing, dotsam, sanketio, petenelson, nathanielks, rigagoogoo, dslatten, jinschoi, kelin1003, vaishuagola27, rahulsprajapati, Joel-James, utkarshpatel, gsayed786, shashwatmittal, sudhiryadav, thrijith, stayallive, jaredwsmith, abhijitrakas, umeshnevase
55

66
**Tags:** nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks
77

88
**Requires at least:** 3.0
99

1010
**Tested up to:** 5.4
1111

12-
**Stable tag:** 2.2.1
12+
**Stable tag:** 2.2.2
1313

1414
**License:** GPLv2 or later (of-course)
1515

@@ -36,7 +36,6 @@ You will need to follow one or more tutorials below to get desired functionality
3636
* [Nginx + WordPress-Multisite (Subdomains/domain-mapping) + fastcgi_purge_cache](https://easyengine.io/wordpress-nginx/tutorials/multisite/subdomains/fastcgi-cache-with-purging/)
3737
* [Other WordPress-Nginx Tutorials](https://easyengine.io/wordpress-nginx/tutorials/)
3838

39-
4039
## Installation ##
4140

4241
Automatic Installation
@@ -88,7 +87,6 @@ As long as you don't purge the page (or make changes that purge it from the cach
8887

8988
The rest shows you the database queries and time saved on loading this page. (This would have been the additional resource load, if you weren't using fast-cgi-cache.)
9089

91-
9290
**Q. I need to flush a cached page immediately! How do I do that?**
9391

9492
Nginx helper plugin handles usual scenarios, when a page in the cache will need purging. For example, when a post is edited or a comment is approved on a post.
@@ -101,22 +99,20 @@ To purge a page immediately, follow these instructions:
10199
* Just open this in a browser and the page will be purged instantly.
102100
* Needless to say, this won't work, if you have a page or taxonomy called 'purge'.
103101

104-
105102
### FAQ - Nginx Redis Cache ###
106103

107104
**Q. Can I override the redis hostname, port and prefix?**
108105

109106
Yes, you can force override the redis hostname, port or prefix by defining constant in wp-config.php. For example:
110107

111-
```
108+
```php
112109
define( 'RT_WP_NGINX_HELPER_REDIS_HOSTNAME', '10.0.0.1' );
113110

114111
define( 'RT_WP_NGINX_HELPER_REDIS_PORT', '6000' );
115112

116113
define( 'RT_WP_NGINX_HELPER_REDIS_PREFIX', 'page-cache:' );
117114
```
118115

119-
120116
### FAQ - Nginx Map ###
121117

122118
**Q. My multisite already uses `WPMU_ACCEL_REDIRECT`. Do I still need Nginx Map?**
@@ -127,33 +123,44 @@ Definitely. `WPMU_ACCEL_REDIRECT` reduces the load on PHP, but it still ask Word
127123

128124
Most likely yes. A wordpress plugin, if not using explicitly any Apache-only mod, should work on Nginx. Some plugin may need some extra work.
129125

130-
131126
### Still need help! ###
132127

133128
Please post your problem in [our free support forum](http://community.rtcamp.com/c/wordpress-nginx).
134129

135130
## Screenshots ##
131+
136132
### 1. Nginx plugin settings ###
133+
137134
![Nginx plugin settings](https://ps.w.org/nginx-helper/assets/screenshot-1.png)
138135

139136
### 2. Remaining settings ###
140-
![Remaining settings](https://ps.w.org/nginx-helper/assets/screenshot-2.png)
141137

138+
![Remaining settings](https://ps.w.org/nginx-helper/assets/screenshot-2.png)
142139

143140
## Changelog ##
144141

142+
### 2.2.2 ###
143+
144+
* Add action `rt_nginx_helper_after_purge_all` to fire after the entire cache has been purged whatever caching type is used. [#232](https://github.com/rtCamp/nginx-helper/pull/232) - by [Julien-prrs](https://github.com/Julien-prrs)
145+
* Fix issue where settings not saved because the button's value localized (for any language). [#236](https://github.com/rtCamp/nginx-helper/pull/236) - by [umeshnevase](https://github.com/umeshnevase)
146+
* Fix issue where "Custom Purge URL" option displays previous value. [#240](https://github.com/rtCamp/nginx-helper/issues/240), [#241](https://github.com/rtCamp/nginx-helper/pull/241) - by [KirillGritcenko](https://github.com/KirillGritcenko)
147+
* Tested with WordPress 5.4
148+
145149
### 2.2.1 ###
150+
146151
* Fix timeout issue on FastCGI cache purge. [#229](https://github.com/rtCamp/nginx-helper/pull/229) - by [chandrapatel](https://github.com/chandrapatel), [thrijith](https://github.com/thrijith)
147152

148153
### 2.2.0 ###
154+
149155
* Add filter `rt_nginx_helper_fastcgi_purge_suffix` to change purge suffix for FastCGI cache. [#141](https://github.com/rtCamp/nginx-helper/pull/141) - by [stayallive](https://github.com/stayallive)
150156
* Add filter `rt_nginx_helper_fastcgi_purge_url_base` to change purge URL base for FastCGI cache. [#141](https://github.com/rtCamp/nginx-helper/pull/141) - by [stayallive](https://github.com/stayallive)
151157
* Update our code to be in line with WordPress Coding standards in various places. [#209](https://github.com/rtCamp/nginx-helper/pull/209), [#225](https://github.com/rtCamp/nginx-helper/pull/225) - by [abhijitrakas](https://github.com/abhijitrakas), [chandrapatel](https://github.com/chandrapatel)
152158
* Check and verify purging is enabled before purging cache. [#168](https://github.com/rtCamp/nginx-helper/pull/168) - by [jaredwsmith](https://github.com/jaredwsmith)
153-
* Hide Purge Cache button in admin bar when purge is disabled. [#218](https://github.com/rtCamp/nginx-helper/issues/218), [#219](https://github.com/rtCamp/nginx-helper/pull/219) - by [mbautista](https://github.com/mbautista), [chandrapatel](https://github.com/mbautista)
159+
* Hide Purge Cache button in admin bar when purge is disabled. [#218](https://github.com/rtCamp/nginx-helper/issues/218), [#219](https://github.com/rtCamp/nginx-helper/pull/219) - by [mbautista](https://github.com/mbautista), [chandrapatel](https://github.com/chandrapatel)
154160
* Don't add Nginx Timestamp on WordPress login page. [#204](https://github.com/rtCamp/nginx-helper/issues/204), [#220](https://github.com/rtCamp/nginx-helper/pull/220) - by [peixotorms](https://github.com/peixotorms), [chandrapatel](https://github.com/chandrapatel)
155161

156162
### 2.1.0 ###
163+
157164
* Add wildcard cache key deletion for device type cache purge. [#203](https://github.com/rtCamp/nginx-helper/pull/203) - by [pradeep910](https://github.com/pradeep910)
158165
* Add filter `rt_nginx_helper_purge_url` to filter the URL to be purged. [#182](https://github.com/rtCamp/nginx-helper/pull/182) - by [todeveni](https://github.com/todeveni)
159166
* Add filter `rt_nginx_helper_purge_cached_file` to filter the cached file name. [#182](https://github.com/rtCamp/nginx-helper/pull/182) - by [todeveni](https://github.com/todeveni)
@@ -168,64 +175,78 @@ Please post your problem in [our free support forum](http://community.rtcamp.com
168175
* Handle filesize exception while truncating nginx.log file. [#206](https://github.com/rtCamp/nginx-helper/pull/206) - by [peterjanes](https://github.com/peterjanes)
169176

170177
### 2.0.3 ###
178+
171179
* Update article link for fastcgi cache purge. [#187](https://github.com/rtCamp/nginx-helper/pull/187) - by [gagan0123](https://github.com/gagan0123)
172180
* Fix map generation issue on `SUBDOMAIN_INSTALL`. [#189](https://github.com/rtCamp/nginx-helper/pull/189) - by [ChrisHardie](https://github.com/ChrisHardie)
173181
* Add GitHub Action for plugin release. [#194](https://github.com/rtCamp/nginx-helper/pull/194) - by [sudhir-yadav](https://github.com/sudhir-yadav)
174182

175183
### 2.0.2 ###
184+
176185
* Fix undefined error when we install the plugin for the first time and if Redis is not available. [#162](https://github.com/rtCamp/nginx-helper/pull/162) - by [Joel-James](https://github.com/Joel-James)
177186
* Remove extra spacing for nginx map section. [#169](https://github.com/rtCamp/nginx-helper/pull/169) - by [ShashwatMittal](https://github.com/ShashwatMittal)
178187
* Purge Cache menu in front-end admibar now purge current page. [#173](https://github.com/rtCamp/nginx-helper/pull/173) - by [imranhsayed](https://github.com/imranhsayed)
179188
* Fix issue where cache is not cleared when page is swiched from publish to draft. [#174](https://github.com/rtCamp/nginx-helper/pull/174) - by [imranhsayed](https://github.com/imranhsayed)
180189
* Fix an issue where custom purge url option does not show newlines when using multiple urls. [#184](https://github.com/rtCamp/nginx-helper/issues/184) - by [mist-webit](https://github.com/mist-webit)
181190

182191
### 2.0.1 ###
192+
183193
* Fix settings url for multisite: use network_admin_url to get network correct settings url. [#163](https://github.com/rtCamp/nginx-helper/pull/163) - by [Joel-James](https://github.com/Joel-James)
184194
* Fix php error with arbitrary statement in empty - Prior to PHP 5.5. [#165](https://github.com/rtCamp/nginx-helper/pull/165) - by [PatelUtkarsh](https://github.com/PatelUtkarsh)
185195

186196
### 2.0.0 ###
197+
187198
* Fix typo causing failure to purge on trashed comment. [#159](https://github.com/rtCamp/nginx-helper/pull/159) - by [jinschoi](https://github.com/jinschoi)
188199
* Refactor Plugin structure and remove unused code. Initial code by [chandrapatel](https://github.com/chandrapatel), [#153](https://github.com/rtCamp/nginx-helper/pull/153) - by [kelin1003](https://github.com/kelin1003),
189200
* Run phpcs and fix warning. [#158](https://github.com/rtCamp/nginx-helper/pull/158) by [vaishaliagola27](https://github.com/vaishaliagola27)
190201
* Make compatible with EasyEngine v4.
191202

192203
### 1.9.12 ###
204+
193205
* Allow override Redis host/port/prefix by defining constant in wp-config.php [#152](https://github.com/rtCamp/nginx-helper/pull/152) - by [vincent-lu](https://github.com/vincent-lu)
194206

195207
### 1.9.11 ###
208+
196209
* Fixed issue where permalinks without trailing slash does not purging [#124](https://github.com/rtCamp/nginx-helper/issues/124) - by Patrick
197210
* Check whether role exist or not before removing capability. [#134](https://github.com/rtCamp/nginx-helper/pull/134) - by [1gor](https://github.com/1gor)
198211

199212
### 1.9.10 ###
213+
200214
* 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)
201215
* 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)
202216

203217
### 1.9.9 ###
218+
204219
* Fix wp_redirect issue. [#131](https://github.com/rtCamp/nginx-helper/pull/131) - by [matt-h](https://github.com/matt-h)
205220

206221
### 1.9.8 ###
222+
207223
* Fixed homepage cache cleared when WPML plugin used [#116](https://github.com/rtCamp/nginx-helper/pull/116) - by [Niwreg](https://profiles.wordpress.org/niwreg/)
208224
* Fixed Purge Cache clears the whole Redis cache [#113](https://github.com/rtCamp/nginx-helper/issues/113) - by HansVanEijsden
209225
* One log file for all site in WPMU.
210226
* Single site Redis cache purge when click on Purge Cache button in WPMU [#122](https://github.com/rtCamp/nginx-helper/pull/122) - by Lars Støttrup Nielsen
211227
* Fixed notices and warnings.
212228

213229
### 1.9.7 ###
230+
214231
* Remove timestamp if cron or wp-cli [#114](https://github.com/rtCamp/nginx-helper/pull/114) - by [samedwards](https://profiles.wordpress.org/samedwards/)
215232
* Fixed notices and warnings.
216233

217234
### 1.9.6 ###
235+
218236
* Fixed cache purging on post publish.
219237
* Error fixed when redis server not installed.
220238

221239
### 1.9.5 ###
240+
222241
Added custom purge URL option.
223242

224243
### 1.9.4 ###
244+
225245
* Added redis server connection timeout.
226246
* Added RedisException handling.
227247

228248
### 1.9.3 ###
249+
229250
* Added PhpRedis API support.
230251
* Added redis-lua script support to purge complete cache very fast.
231252
* Added composer.json support
@@ -234,136 +255,176 @@ Added custom purge URL option.
234255
[gagan0123](https://github.com/gagan0123)
235256

236257
### 1.9.2 ###
258+
237259
Fix purging for Redis cache and FastCGI cache
238260

239261
### 1.9.1 ###
262+
240263
Fix purging for custom post types
241264

242265
### 1.9 ###
266+
243267
Added Redis cache purge support.
244268

245269
### 1.8.13 ###
270+
246271
Fixed PHP notice for an undefined index when "Enable Logging" is not set.
247272

248273
### 1.8.12 ###
274+
249275
Updated readme and changelog
250276

251277
### 1.8.11 ###
278+
252279
Fix url escaping [#82](https://github.com/rtCamp/nginx-helper/pull/82) - by
253280
[javisperez](https://github.com/javisperez)
254281

255282
### 1.8.10 ###
283+
256284
* Security bug fix
257285

258286
### 1.8.9 ###
287+
259288
* Default setting fix and wp-cli example correction - by [bcole808](https://profiles.wordpress.org/bcole808/)
260289

261290
### 1.8.8 ###
291+
262292
* Added option to purge cache without nginx purge module - by [bcole808](https://profiles.wordpress.org/bcole808/)
263293

264294
### 1.8.7 ###
295+
265296
* Added action `rt_nginx_helper_purge_all` to purge cache from other plugins - by [gungeekatx](https://profiles.wordpress.org/gungeekatx/)
266297

267298
### 1.8.6 ###
299+
268300
* Removed wercker.yml from plugin zip/svn.
269301
* Updated readme
270302

271303
### 1.8.5 ###
304+
272305
* Added WP_CLI support - by [Udit Desai](https://profiles.wordpress.org/desaiuditd/)
273306

274307
### 1.8.4 ###
308+
275309
* Fix undefined index issue and correct "purge_archive_on_del" key
276310

277311
### 1.8.3 ###
312+
278313
* Tested with WordPress 4.0
279314
* Fix issue #69
280315

281316
### 1.8.1 ###
317+
282318
* Tested with wordpress 3.9.1
283319
* Fix confilct with Mailchimp's Social plugin
284320

285321
### 1.8 ###
322+
286323
* New admin UI
287324
* Fix missing wp_sanitize_redirect function call
288325

289326
### 1.7.6 ###
327+
290328
* Update Backend UI
291329
* Added Language Support
292330

293331
### 1.7.5 ###
332+
294333
* Fixed option name mismatch issue to purge homepage on delete.
295334

296335
### 1.7.4 ###
336+
297337
* Disable purge and stamp by default.
298338

299339
### 1.7.3 ###
340+
300341
* Suppressed `unlink` related error-messages which can be safely ignored.
301342
* Fixed a bug in purge-all option.
302343

303344
### 1.7.2 ###
345+
304346
* [pjv](http://profiles.wordpress.org/pjv/) fixed bug in logging file.
305347

306348
### 1.7.1 ###
349+
307350
* Fixes bug in true purge and admin screen.
308351

309352
### 1.7 ###
353+
310354
* True full cache purge added.
311355
* Map file location changed to uploads' directory to fix http://rtcamp.com/support/topic/plugin-update-removes-map-file/
312356
* Log file location also changed to uploads' directory.
313357

314358
### 1.6.13 ###
359+
315360
* [pjv](http://profiles.wordpress.org/pjv/) changed the way home URL is accessed. Instead of site option, the plugin now uses home_URL() function.
316361

317362
### 1.6.12 ###
363+
318364
* [telofy](http://wordpress.org/support/profile/telofy) added purging of atom and RDF feeds.
319365

320366
### 1.6.11 ###
367+
321368
* Removed comments from Admin screens since, it was interfering with media uploads in 3.5 up.
322369

323370
### 1.6.10 ###
371+
324372
* Cleaned up code.
325373
* Added credits for code.
326374
* Improved attachment purging.
327375

328376
### 1.6.9 ###
377+
329378
* Added Faux to Purge all buttons, to avoid misleading users.
330379

331380
### 1.6.8 ###
381+
332382
* [daankortenbach](http://profiles.wordpress.org/daankortenbach) added Purge Cache link to wp-admin bar
333383

334384
### 1.6.7 ###
385+
335386
* [jk3us](http://profiles.wordpress.org/jk3us) added better content-type detection for cache verification comments
336387

337388
### 1.6.6 ###
389+
338390
* [darren-slatten](http://profiles.wordpress.org/darren-slatten/) added Manual 'Purge all URLs' functionality
339391

340392
### 1.6.5 ###
393+
341394
* Fixed typo that interfered with archive purge settings. Thanks to [Daan Kortenbach](http://profiles.wordpress.org/daankortenbach/) for pointing this out.
342395

343396
### 1.6.4 ###
397+
344398
* Improved code for map generation to better conventions since the nesting confused some servers.
345399
* Added map update process to admin_init for frequent refreshes.
346400

347401
### 1.6.3 ###
402+
348403
* Fixed duplicate entries.
349404

350405
### 1.6.2 ###
406+
351407
* Another bug fix in the revised code for improved multisite and multidomain mapping.
352408

353409
### 1.6.1 ###
410+
354411
* Fixed bug in the revised code for improved multisite and multidomain mapping.
355412

356413
### 1.6 ###
414+
357415
* Revised code for improved multisite and multidomain mapping.
358416

359417
### 1.5 ###
418+
360419
* Timestamp now only gets added to content-type text/html
361420
* Added option to toggle timestamp creation
362421

363422
### 1.4 ###
423+
364424
* Fixed bug related to nomenclature of comment status that caused purge to fail.
365425

366426
### 1.3.9 ###
427+
367428
* Removed extraneous headers.
368429

369430
### 1.3.8 ###
@@ -422,10 +483,10 @@ Fix url escaping [#82](https://github.com/rtCamp/nginx-helper/pull/82) - by
422483

423484
## Upgrade Notice ##
424485

425-
### 2.2.1 ###
486+
### 2.2.2 ###
426487

427-
Nginx Helper 2.2.1, introduces new Hooks to extend FastCGI cache purge, Adds check for verifying purge status before purging and other bug fixes.
488+
Nginx Helper 2.2.2, Add new "rt_nginx_helper_after_purge_all" action and fixes issues where settings not saved because the button's value localized (for any language) and "Custom Purge URL" option displays previous value.
428489

429-
## Does this interest you?
490+
## Does this interest you? ##
430491

431492
<a href="https://rtcamp.com/"><img src="https://rtcamp.com/wp-content/uploads/2019/04/[email protected]" alt="Join us at rtCamp, we specialize in providing high performance enterprise WordPress solutions"></a>

includes/class-nginx-helper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Nginx_Helper {
7777
public function __construct() {
7878

7979
$this->plugin_name = 'nginx-helper';
80-
$this->version = '2.2.1';
80+
$this->version = '2.2.2';
8181
$this->minimum_wp = '3.0';
8282

8383
if ( ! $this->required_wp_version() ) {

0 commit comments

Comments
 (0)