Version Description
- Fixed map generation for multi domain installs with domain mapping plugin
Download this release
Release Info
Developer | saurabhshukla |
Plugin | Nginx Helper |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.3.2
- admin/admin.php +1 -0
- nginx-helper.php +2 -2
- readme.txt +19 -9
admin/admin.php
CHANGED
@@ -112,6 +112,7 @@ namespace rtCamp\WP\Nginx{
|
|
112 |
</table>
|
113 |
|
114 |
<?php
|
|
|
115 |
if($rt_wp_nginx_helper->options['enable_purge']==false){
|
116 |
$displayvar = ' style="display:none"';
|
117 |
}
|
112 |
</table>
|
113 |
|
114 |
<?php
|
115 |
+
$displayvar='';
|
116 |
if($rt_wp_nginx_helper->options['enable_purge']==false){
|
117 |
$displayvar = ' style="display:none"';
|
118 |
}
|
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
|
7 |
Author: rtCamp
|
8 |
Author URI: http://rtcamp.com
|
9 |
Requires at least: 3.0
|
@@ -208,7 +208,7 @@ namespace rtCamp\WP\Nginx {
|
|
208 |
|
209 |
$rt_all_blogs = $wpdb->get_results($wpdb->prepare("SELECT blog_id, domain, path FROM " . $wpdb->blogs . " WHERE site_id = %d AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0'", $wpdb->siteid));
|
210 |
$wpdb->dmtable = $wpdb->base_prefix . 'domain_mapping';
|
211 |
-
if($wpdb->get_var("SHOW TABLES LIKE '{$wpdb->dmtable}'")
|
212 |
$rt_domain_map_sites = $wpdb->get_results( "SELECT blog_id, domain FROM {$wpdb->dmtable} ORDER BY id DESC" );
|
213 |
}
|
214 |
$rt_nginx_map ="";
|
3 |
Plugin Name: Nginx Helper
|
4 |
Plugin URI: http://rtcamp.com/
|
5 |
Description: An nginx helper that serves various functions.
|
6 |
+
Version: 1.3.2
|
7 |
Author: rtCamp
|
8 |
Author URI: http://rtcamp.com
|
9 |
Requires at least: 3.0
|
208 |
|
209 |
$rt_all_blogs = $wpdb->get_results($wpdb->prepare("SELECT blog_id, domain, path FROM " . $wpdb->blogs . " WHERE site_id = %d AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0'", $wpdb->siteid));
|
210 |
$wpdb->dmtable = $wpdb->base_prefix . 'domain_mapping';
|
211 |
+
if($wpdb->get_var("SHOW TABLES LIKE '{$wpdb->dmtable}'") == $wpdb->dmtable) {
|
212 |
$rt_domain_map_sites = $wpdb->get_results( "SELECT blog_id, domain FROM {$wpdb->dmtable} ORDER BY id DESC" );
|
213 |
}
|
214 |
$rt_nginx_map ="";
|
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
|
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/
|
@@ -19,6 +19,7 @@ Helps WordPress-Nginx work together nicely using fastcgi/proxy cache purging, ng
|
|
19 |
= Tutorials =
|
20 |
|
21 |
You will need to follow one ore more tutorials below to get desired fundtionality:
|
|
|
22 |
* [Nginx Map + WordPress-Multisite + Static Files Handling](http://rtcamp.com/tutorials/nginx-maps-wordpress-multisite-static-files-handling/)
|
23 |
* [Nginx + WordPress + fastcgi_purge_cache](http://rtcamp.com/tutorials/wordpress-nginx-fastcgi-cache-purge-conditional/)
|
24 |
* [Nginx + WordPress-Multisite (Subdirectories) + fastcgi_purge_cache](http://rtcamp.com/tutorials/wordpress-multisite-subdirectories-nginx-fastcgi-cache-purge/)
|
@@ -50,10 +51,18 @@ Definietly yes. `WPMU_ACCEL_REDIRECT` reduceds load on PHP, but it still ask Wor
|
|
50 |
|
51 |
= FAQ - Nginx Fastcgi Cache Purge =
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
**Q. How do I know my Nginx config is correct for fastcgi purging?**
|
|
|
54 |
For any page on your site, try purging cache manullay for it, by following instructions mentioned in next answer.
|
55 |
|
56 |
**Q. I need to flush a cached page immediately! How do I do that?**
|
|
|
57 |
Nginx helper plugin try to handle all common cases when you need to purge a cached copy of page. e.g. a post is edited, a comment is approved on a post, etc.
|
58 |
|
59 |
If you come across any URL like `http://example.com/hello-world/' you can simply 'purge' before path-part of URL.
|
@@ -79,6 +88,13 @@ Its just that we are hyperactive on our own forum!
|
|
79 |
2. Remaining settings
|
80 |
|
81 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
= 1.3 =
|
84 |
|
@@ -103,11 +119,5 @@ Its just that we are hyperactive on our own forum!
|
|
103 |
|
104 |
== Upgrade Notice ==
|
105 |
|
106 |
-
= 1.3 =
|
107 |
-
|
108 |
-
Improved Readme.
|
109 |
-
|
110 |
-
|
111 |
-
= 1.2 =
|
112 |
-
|
113 |
-
This release fixes a couple of bugs with nginx maps and purging logic.
|
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.2
|
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/
|
19 |
= Tutorials =
|
20 |
|
21 |
You will need to follow one ore more tutorials below to get desired fundtionality:
|
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/)
|
25 |
* [Nginx + WordPress-Multisite (Subdirectories) + fastcgi_purge_cache](http://rtcamp.com/tutorials/wordpress-multisite-subdirectories-nginx-fastcgi-cache-purge/)
|
51 |
|
52 |
= FAQ - Nginx Fastcgi Cache Purge =
|
53 |
|
54 |
+
**Q. Does it work for custom posts and taxonomies?**
|
55 |
+
Yes. It handles all post-types same way.
|
56 |
+
|
57 |
+
For any page on your site, try purging cache manullay for it, by following instructions mentioned in next answer.
|
58 |
+
|
59 |
+
|
60 |
**Q. How do I know my Nginx config is correct for fastcgi purging?**
|
61 |
+
|
62 |
For any page on your site, try purging cache manullay for it, by following instructions mentioned in next answer.
|
63 |
|
64 |
**Q. I need to flush a cached page immediately! How do I do that?**
|
65 |
+
|
66 |
Nginx helper plugin try to handle all common cases when you need to purge a cached copy of page. e.g. a post is edited, a comment is approved on a post, etc.
|
67 |
|
68 |
If you come across any URL like `http://example.com/hello-world/' you can simply 'purge' before path-part of URL.
|
88 |
2. Remaining settings
|
89 |
|
90 |
== Changelog ==
|
91 |
+
= 1.3.2 =
|
92 |
+
|
93 |
+
* Fixed map generation for multi domain installs with domain mapping plugin
|
94 |
+
|
95 |
+
= 1.3.1 =
|
96 |
+
|
97 |
+
* Minor fixes for directory structure and file names.
|
98 |
|
99 |
= 1.3 =
|
100 |
|
119 |
|
120 |
== Upgrade Notice ==
|
121 |
|
122 |
+
= 1.3.2 =
|
123 |
+
Fixed map generation for multi domain installs using domain mapping plugin.
|
|
|
|
|
|
|
|
|
|
|
|