Version Description
- pjv fixed bug in logging file.
Download this release
Release Info
Developer | saurabhshukla |
Plugin | Nginx Helper |
Version | 1.7.2 |
Comparing to | |
See all releases |
Code changes from version 1.7.1 to 1.7.2
- admin/admin.php +10 -2
- nginx-helper.php +1 -1
- readme.txt +4 -1
admin/admin.php
CHANGED
@@ -228,12 +228,20 @@ namespace rtCamp\WP\Nginx {
|
|
228 |
<h3>Logging</h3>
|
229 |
|
230 |
<?php
|
231 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
$rt_wp_nginx_purger->log( "+++++++++" );
|
233 |
$rt_wp_nginx_purger->log( "+Log Test" );
|
234 |
$rt_wp_nginx_purger->log( "+++++++++" );
|
235 |
}
|
236 |
-
if ( ! is_writable( $
|
237 |
?>
|
238 |
<span class="error fade" style="display : block"><p><?php printf( __( "Can't write on log file.<br /><br />Check you have write permission on <strong>%s</strong>", "rt_wp_nginx_helper" ), $rt_wp_nginx_helper->functional_asset_path() . 'nginx.log' ); ?></p></span>
|
239 |
<?php } ?>
|
228 |
<h3>Logging</h3>
|
229 |
|
230 |
<?php
|
231 |
+
$path = $rt_wp_nginx_helper->functional_asset_path();
|
232 |
+
if (!is_dir($path)){
|
233 |
+
mkdir($path);
|
234 |
+
}
|
235 |
+
if (!file_exists($path . 'nginx.log')) {
|
236 |
+
$log = fopen($path . 'nginx.log', 'w');
|
237 |
+
fclose($log);
|
238 |
+
}
|
239 |
+
if ( is_writable( $path . 'nginx.log' ) ) {
|
240 |
$rt_wp_nginx_purger->log( "+++++++++" );
|
241 |
$rt_wp_nginx_purger->log( "+Log Test" );
|
242 |
$rt_wp_nginx_purger->log( "+++++++++" );
|
243 |
}
|
244 |
+
if ( ! is_writable( $path . 'nginx.log' ) ) {
|
245 |
?>
|
246 |
<span class="error fade" style="display : block"><p><?php printf( __( "Can't write on log file.<br /><br />Check you have write permission on <strong>%s</strong>", "rt_wp_nginx_helper" ), $rt_wp_nginx_helper->functional_asset_path() . 'nginx.log' ); ?></p></span>
|
247 |
<?php } ?>
|
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.7.
|
7 |
Author: rtCamp
|
8 |
Author URI: http://rtcamp.com
|
9 |
Requires at least: 3.0
|
3 |
Plugin Name: Nginx Helper
|
4 |
Plugin URI: http://rtcamp.com/
|
5 |
Description: An nginx helper that serves various functions.
|
6 |
+
Version: 1.7.2
|
7 |
Author: rtCamp
|
8 |
Author URI: http://rtcamp.com
|
9 |
Requires at least: 3.0
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: rtcamp, rahul286, saurabhshukla, Darren Slatten, jk3us, daankorten
|
|
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.5
|
6 |
-
Stable tag: 1.7.
|
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/
|
@@ -113,6 +113,9 @@ Its just that we are hyperactive on our own forum!
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
116 |
= 1.7.1 =
|
117 |
* Fixes bug in true purge and admin screen.
|
118 |
|
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.5
|
6 |
+
Stable tag: 1.7.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/
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= 1.7.2 =
|
117 |
+
* [pjv](http://profiles.wordpress.org/pjv/) fixed bug in logging file.
|
118 |
+
|
119 |
= 1.7.1 =
|
120 |
* Fixes bug in true purge and admin screen.
|
121 |
|