Version Description
Updated readme and changelog
Download this release
Release Info
Developer | rtcamp |
Plugin | Nginx Helper |
Version | 1.8.12 |
Comparing to | |
See all releases |
Code changes from version 1.8.10 to 1.8.12
- admin/lib/nginx-general.php +1 -1
- nginx-helper.php +1 -1
- readme.txt +25 -19
admin/lib/nginx-general.php
CHANGED
@@ -82,7 +82,7 @@ namespace rtCamp\WP\Nginx {
|
|
82 |
</h3>
|
83 |
<form id="purgeall" action="" method="post" class="clearfix">
|
84 |
<div class="inside">
|
85 |
-
<?php $purge_url =
|
86 |
<?php $nonced_url = wp_nonce_url( $purge_url, 'nginx_helper-purge_all' ); ?>
|
87 |
<table class="form-table">
|
88 |
<tr valign="top">
|
82 |
</h3>
|
83 |
<form id="purgeall" action="" method="post" class="clearfix">
|
84 |
<div class="inside">
|
85 |
+
<?php $purge_url = add_query_arg( array( 'nginx_helper_action' => 'purge', 'nginx_helper_urls' => 'all' ) ); ?>
|
86 |
<?php $nonced_url = wp_nonce_url( $purge_url, 'nginx_helper-purge_all' ); ?>
|
87 |
<table class="form-table">
|
88 |
<tr valign="top">
|
nginx-helper.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Nginx Helper
|
4 |
Plugin URI: https://rtcamp.com/nginx-helper/
|
5 |
Description: Cleans nginx's fastcgi/proxy cache whenever a post is edited/published. Also does few more things.
|
6 |
-
Version: 1.8.
|
7 |
Author: rtCamp
|
8 |
Author URI: https://rtcamp.com
|
9 |
Text Domain: nginx-helper
|
3 |
Plugin Name: Nginx Helper
|
4 |
Plugin URI: https://rtcamp.com/nginx-helper/
|
5 |
Description: Cleans nginx's fastcgi/proxy cache whenever a post is edited/published. Also does few more things.
|
6 |
+
Version: 1.8.12
|
7 |
Author: rtCamp
|
8 |
Author URI: https://rtcamp.com
|
9 |
Text Domain: nginx-helper
|
readme.txt
CHANGED
@@ -3,22 +3,22 @@ Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desai
|
|
3 |
Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, rewrite, permalinks
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.2
|
6 |
-
Stable tag: 1.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/
|
10 |
|
11 |
-
Cleans nginx's fastcgi/proxy cache whenever a post is edited/published. Also does few more things.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
1. Removes `index.php` from permalinks when using WordPress with nginx.
|
16 |
1. Adds support for nginx fastcgi_cache_purge & proxy_cache_purge directive from [module](https://github.com/FRiCKLE/ngx_cache_purge "ngx_cache_purge module"). Provides settings so you can customize purging rules.
|
17 |
-
1. Adds support for nginx `map{..}` on a WordPress-multisite network installation. Using it Nginx can serve PHP file uploads even if PHP/MySQL crashes. Please check
|
18 |
|
19 |
= Tutorials =
|
20 |
|
21 |
-
You will need to follow one
|
22 |
|
23 |
* [Nginx Map + WordPress-Multisite + Static Files Handling](http://rtcamp.com/tutorials/nginx-maps-wordpress-multisite-static-files-handling/)
|
24 |
* [Nginx + WordPress + fastcgi_purge_cache](http://rtcamp.com/tutorials/wordpress-nginx-fastcgi-cache-purge-conditional/)
|
@@ -40,17 +40,17 @@ Manual Installation
|
|
40 |
1. Upload them to `/wp-content/plugins/` directory on your WordPress installation.
|
41 |
1. Then activate the Plugin from Plugins page.
|
42 |
|
43 |
-
For proper configuration, check **tutorial list**
|
44 |
|
45 |
== Frequently Asked Questions ==
|
46 |
|
47 |
-
**Important** - Please refer to [http://rtcamp.com/nginx-helper/faq](http://rtcamp.com/nginx-helper/faq) for
|
48 |
|
49 |
= FAQ - Installation/Comptability =
|
50 |
|
51 |
**Q. Will this work out of the box?**
|
52 |
|
53 |
-
No. You need to make some changes at the Nginx end. Please check [tutorial list](http://rtcamp.com/wordpress-nginx/tutorials)
|
54 |
|
55 |
= FAQ - Nginx Fastcgi Cache Purge =
|
56 |
|
@@ -65,18 +65,16 @@ Replace the path with your own.
|
|
65 |
|
66 |
**Q. Does it work for custom posts and taxonomies?**
|
67 |
|
68 |
-
Yes. It handles all post-types same way.
|
69 |
|
70 |
**Q. How do I know my Nginx config is correct for fastcgi purging?**
|
71 |
|
72 |
Manually purging any page from the cache, by following instructions in the previous answer.
|
73 |
|
74 |
-
Version 1.3.4 onwards, Nginx Helper adds a comment at the end of the
|
75 |
-
|
76 |
-
This shows the time when the page was last cached. This date/time will be reset whenever this page is purged and refreshed in the cache.
|
77 |
|
78 |
-
|
79 |
-
As long as you don't purge the page (or make changes that purge it from the cache), the timestamp will remain as it is, even if you keep refreshing the page. This means the page was served from the cache and it's working!
|
80 |
|
81 |
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.)
|
82 |
|
@@ -86,11 +84,12 @@ The rest shows you the database queries and time saved on loading this page. (Th
|
|
86 |
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.
|
87 |
|
88 |
To purge a page immediately, follow these instructions:
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
94 |
|
95 |
|
96 |
= FAQ - Nginx Map =
|
@@ -114,6 +113,13 @@ Please post your problem in [our free support forum](http://community.rtcamp.com
|
|
114 |
|
115 |
== Changelog ==
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
= 1.8.10 =
|
118 |
* Security bug fix
|
119 |
|
@@ -174,7 +180,7 @@ Please post your problem in [our free support forum](http://community.rtcamp.com
|
|
174 |
* Log file location also changed to uploads' directory.
|
175 |
|
176 |
= 1.6.13 =
|
177 |
-
* [pjv](http://profiles.wordpress.org/pjv/) changed the way home
|
178 |
|
179 |
= 1.6.12 =
|
180 |
* [telofy](http://wordpress.org/support/profile/telofy) added purging of atom and RDF feeds.
|
3 |
Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, rewrite, permalinks
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.2
|
6 |
+
Stable tag: 1.8.12
|
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 whenever a post is edited/published. Also does a few more things.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
1. Removes `index.php` from permalinks when using WordPress with nginx.
|
16 |
1. Adds support for nginx fastcgi_cache_purge & proxy_cache_purge directive from [module](https://github.com/FRiCKLE/ngx_cache_purge "ngx_cache_purge module"). Provides settings so you can customize purging rules.
|
17 |
+
1. Adds support for nginx `map{..}` on a WordPress-multisite network installation. Using it, Nginx can serve PHP file uploads even if PHP/MySQL crashes. Please check the tutorial list below for related Nginx configurations.
|
18 |
|
19 |
= Tutorials =
|
20 |
|
21 |
+
You will need to follow one or more tutorials below to get desired functionality:
|
22 |
|
23 |
* [Nginx Map + WordPress-Multisite + Static Files Handling](http://rtcamp.com/tutorials/nginx-maps-wordpress-multisite-static-files-handling/)
|
24 |
* [Nginx + WordPress + fastcgi_purge_cache](http://rtcamp.com/tutorials/wordpress-nginx-fastcgi-cache-purge-conditional/)
|
40 |
1. Upload them to `/wp-content/plugins/` directory on your WordPress installation.
|
41 |
1. Then activate the Plugin from Plugins page.
|
42 |
|
43 |
+
For proper configuration, check out our **tutorial list** in the [Description tab](http://wordpress.org/extend/plugins/nginx-helper).
|
44 |
|
45 |
== Frequently Asked Questions ==
|
46 |
|
47 |
+
**Important** - Please refer to [http://rtcamp.com/nginx-helper/faq](http://rtcamp.com/nginx-helper/faq) for up-to-date FAQs.
|
48 |
|
49 |
= FAQ - Installation/Comptability =
|
50 |
|
51 |
**Q. Will this work out of the box?**
|
52 |
|
53 |
+
No. You need to make some changes at the Nginx end. Please check our [tutorial list](http://rtcamp.com/wordpress-nginx/tutorials).
|
54 |
|
55 |
= FAQ - Nginx Fastcgi Cache Purge =
|
56 |
|
65 |
|
66 |
**Q. Does it work for custom posts and taxonomies?**
|
67 |
|
68 |
+
Yes. It handles all post-types the same way.
|
69 |
|
70 |
**Q. How do I know my Nginx config is correct for fastcgi purging?**
|
71 |
|
72 |
Manually purging any page from the cache, by following instructions in the previous answer.
|
73 |
|
74 |
+
Version 1.3.4 onwards, Nginx Helper adds a comment at the end of the HTML source ('view source' in your favourite browser):
|
75 |
+
`<!--Cached using Nginx-Helper on 2012-10-08 07:01:45. It took 42 queries executed in 0.280 seconds.-->`. This shows the time when the page was last cached. This date/time will be reset whenever this page is purged and refreshed in the cache. Just check this comment before and after a manual purge.
|
|
|
76 |
|
77 |
+
As long as you don't purge the page (or make changes that purge it from the cache), the timestamp will remain as is, even if you keep refreshing the page. This means the page was served from the cache and it's working!
|
|
|
78 |
|
79 |
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.)
|
80 |
|
84 |
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.
|
85 |
|
86 |
To purge a page immediately, follow these instructions:
|
87 |
+
|
88 |
+
* Let's say we have a page at the following domain: http://yoursite.com/about.
|
89 |
+
* Between the domain name and the rest of the URL, insert '/purge/'.
|
90 |
+
* So, in the above example, the purge URL will be http://yoursite.com/purge/about.
|
91 |
+
* Just open this in a browser and the page will be purged instantly.
|
92 |
+
* Needless to say, this won't work, if you have a page or taxonomy called 'purge'.
|
93 |
|
94 |
|
95 |
= FAQ - Nginx Map =
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= 1.8.12 =
|
117 |
+
Updated readme and changelog
|
118 |
+
|
119 |
+
= 1.8.11 =
|
120 |
+
Fix url escaping [#82](https://github.com/rtCamp/nginx-helper/pull/82) - by
|
121 |
+
[javisperez](https://github.com/javisperez)
|
122 |
+
|
123 |
= 1.8.10 =
|
124 |
* Security bug fix
|
125 |
|
180 |
* Log file location also changed to uploads' directory.
|
181 |
|
182 |
= 1.6.13 =
|
183 |
+
* [pjv](http://profiles.wordpress.org/pjv/) changed the way home URL is accessed. Instead of site option, the plugin now uses home_URL() function.
|
184 |
|
185 |
= 1.6.12 =
|
186 |
* [telofy](http://wordpress.org/support/profile/telofy) added purging of atom and RDF feeds.
|