Skip to content

Commit 6ffe27d

Browse files
committed
added composer
1 parent f0dafd9 commit 6ffe27d

File tree

5 files changed

+233
-10
lines changed

5 files changed

+233
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ npm-debug.log
1111
tests/functional/node_modules/
1212
/tests/functional/reports/
1313
selenium-*.jar
14+
vendor

composer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "rtcamp/nginx-helper",
3+
"description": "Cleans nginx's fastcgi/proxy cache or redis-cahce whenever a post is edited/published. Also does few more things.",
4+
"keywords": ["wordpress", "plugin", "nginx", "nginx-helper", "fastcgi", "redis-cahce", "redis", "cache"],
5+
"homepage": "https://rtcamp.com/nginx-helper/",
6+
"license": "GPLv2",
7+
"authors": [{
8+
"name": "rtCamp",
9+
"email": "[email protected]",
10+
"homepage": "https://rtcamp.com"
11+
}],
12+
"type": "wordpress-plugin",
13+
"require": {
14+
"php": ">=5.3.2",
15+
"composer/installers": "v1.0.6"
16+
},
17+
"require-dev": {
18+
"wpreadme2markdown/wpreadme2markdown": "*"
19+
}
20+
}

composer.lock

Lines changed: 200 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nginx-helper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
Plugin Name: Nginx Helper
44
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.
5+
Description: Cleans nginx's fastcgi/proxy cache or redis-cahce whenever a post is edited/published. Also does few more things.
66
Version: 1.9.3
77
Author: rtCamp
88
Author URI: https://rtcamp.com
@@ -128,11 +128,11 @@ function set_future_post_option_on_future_status( $new_status, $old_status, $pos
128128
global $blog_id, $rt_wp_nginx_purger;
129129
$skip_status = array( 'auto-draft', 'draft', 'inherit', 'trash', 'pending' );
130130
$purge_status = array( 'publish', 'future' );
131-
131+
132132
if ( !$this->options['enable_purge'] || in_array( $old_status, $skip_status ) ) {
133133
return;
134134
}
135-
135+
136136
if( in_array( $old_status, $purge_status ) || in_array( $new_status, $purge_status ) ) {
137137
$rt_wp_nginx_purger->log( "Purge post on transition post STATUS from " . $old_status . " to " . $new_status );
138138
$rt_wp_nginx_purger->purgePost( $post->ID );

readme.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
=== Nginx Helper ===
2-
Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, Darren Slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel
3-
Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, rewrite, permalinks
2+
Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desaiuditd, darren-slatten, jk3us, daankortenbach, telofy, pjv, llonchj, jinnko, weskoop, bcole808, gungeekatx, rohanveer, chandrapatel, gagan0123
3+
Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, redis, redis-cache, rewrite, permalinks
44
Requires at least: 3.0
55
Tested up to: 4.2.2
6-
Stable tag: 1.9.3
7-
later (of-.1course)
8-
Fix purging for custom post types
9-
6+
Stable tag: 1.9.4
107
License: GPLv2 or later (of-course)
118
License URI: http://www.gnu.org/licenses/gpl-2.0.html
129
Donate Link: http://rtcamp.com/donate/
1310

14-
Cleans nginx's fastcgi/proxy cache whenever a post is edited/published. Also does a few more things.
11+
Cleans nginx's fastcgi/proxy cache or redis-cahce whenever a post is edited/published. Also does few more things.
1512

1613
== Description ==
1714

1815
1. Removes `index.php` from permalinks when using WordPress with nginx.
16+
1. Adds support for purging redis-cache when used as full-page cache created using [nginx-srcache-module](https://github.com/openresty/srcache-nginx-module#caching-with-redis)
1917
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.
2018
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.
2119

@@ -118,7 +116,11 @@ Please post your problem in [our free support forum](http://community.rtcamp.com
118116

119117
= 1.9.3 =
120118
* Added PhpRedis API support.
119+
* Added redis-lua script support to purge complete cache very fast.
120+
* Added composer.json support
121121
* Fixed cache purging link in admin bar.
122+
* Updated the initial settings to include the 'purge_method' [#99](https://github.com/rtCamp/nginx-helper/pull/99) - by
123+
[gagan0123](https://github.com/gagan0123)
122124

123125
= 1.9.2 =
124126
Fix purging for Redis cache and FastCGI cache

0 commit comments

Comments
 (0)