Repository navigation
Expand file tree
/
Copy pathreadme.txt
More file actions
218 lines (134 loc) · 5.04 KB
/
Copy pathreadme.txt
File metadata and controls
218 lines (134 loc) · 5.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
=== Nginx Cache Controller ===
Contributors: miyauchi, wokamoto, amimotoami, emaildano
Donate link: https://amimoto-ami.com/
Tags: nginx, reverse proxy, cache
Requires at least: 3.4
Tested up to: 6.1.1
Stable tag: 3.3.4
Provides some functions of controlling Nginx proxy server cache.
== Description ==
This plugin provides some functions of controlling Nginx proxy server cache.
= Security =
* Making comment authors' information ajaxed to prevent the information from caching.
* Send no-cache header on password protected posts to prevent the posts from caching.
* When a scheduled post is published, it will delete the cache through Ajax.
= Controlling cache =
* Sending X-ACCEL-EXPIRES, you can specify the available period of the cache.
* When you save your post and someone post comments, the cache is deleted automatically.
* Add a menu on the admin bar to delete the cache.
= Memo =
* Gets comment poster's IP address by HTTP_X_FORWARDED_FOR header.
* Fixes the issue that the permanent link setting includes index.php.
* When the cache's expiration period is more than 86400 sec, change the value of wp_verify_nonce() same as the period.
= WP-CLI Support =
Flush all proxy caches.
`wp nginx flush`
Show list of all proxy caches.
`wp nginx list --format=csv`
`wp nginx list --format=json`
See help.
`wp help nginx`
= Languages =
* English(en) - [JOTAKI Taisuke](http://tekapo.com/)
* Japanese(Ja) - [JOTAKI Taisuke](http://tekapo.com/)
* Vietnamese(vi) - [Trong](http://bizover.net/)
= Contributor =
* [Ninjax Team](http://ninjax.cc/)
* [miyauchi](http://profiles.wordpress.org/miyauchi/)
* [wokamoto](http://profiles.wordpress.org/wokamoto/)
* [gatespace](http://profiles.wordpress.org/gatespace/)
== Installation ==
* A plug-in installation screen is displayed on the WordPress admin panel.
* It installs it in `wp-content/plugins`.
* The plug-in is made effective.
Example of Nginx settings:
Allow X-ACCEL-EXPIRES for fastcgi.
` location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $vhost_root/$fastcgi_script_name;
fastcgi_pass_header "X-Accel-Redirect";
fastcgi_pass_header "X-Accel-Expires";
}`
Setting cache directory for reverse proxy.
`proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=czone:4m max_size=50m inactive=120m;`
* The default path is /var/cache/nginx.
* The default value of levels is 1:2.
* You can change the cache path at the admin panel.
Setting the key for the reverse cache proxy.
`proxy_cache_key "$scheme://$host$request_uri"`
* You can customize proxy_cache_key with `nginxchampuru_get_reverse_proxy_key` hook.
== Screenshots ==
1. Admin Panel
2. Adminbar
== Changelog ==
= 3.3.4 =
* Checked in WordPress 6.1.1
= 3.3.1 =
* Bug fix for PHP 7.2.x
= 3.2.0 =
* Bug fix for PHP 7.x
= 3.2.0 =
* Bug fix for WP-CLI
= 3.1.1 =
* Tested up to wp4.1
= 3.1.0 =
* Add filter for WP-API
https://github.com/megumiteam/nginx-cache-controller/compare/3.0.0...3.1.0
= 3.0.0 =
* list sub command supported csv and json
https://github.com/megumiteam/nginx-cache-controller/compare/2.9.0...3.0.0
= 2.9.0 =
* Add feed features.
https://github.com/megumiteam/nginx-cache-controller/compare/2.8.0...2.9.0
= 2.8.0 =
* Don't load wp-cron.php when DISABLE_WP_CRON is defined.
https://github.com/megumiteam/nginx-cache-controller/compare/2.7.0...2.8.0
= 2.7.0 =
https://github.com/megumiteam/nginx-cache-controller/compare/2.6.0...2.7.0
= 2.6.0 =
* refactoring
https://github.com/megumiteam/nginx-cache-controller/compare/2.5.0...2.6.0
= 2.5.0 =
* Up priority in the template_redirect hook
https://github.com/megumiteam/nginx-cache-controller/compare/2.4.0...2.5.0
= 2.4.0 =
* Bug fix. (SQL faild at RDS on the AWS.)
https://github.com/megumiteam/nginx-cache-controller/compare/2.3.0...2.4.0
= 2.3.0 =
* Bug fix. (Menu doen't shown when DISALLOW_FILE_MODS is enabled.)
https://github.com/megumiteam/nginx-cache-controller/compare/2.2.1...2.3.0
= 2.2.1 =
* Add language Vietnamese (vi).
= 2.2.0 =
* Add Grunt.
* Update admin interface.
https://github.com/megumiteam/nginx-cache-controller/compare/2.1.0...2.2.0
= 2.1.0 =
* Tested up to 3.8.
= 2.0.0 =
* [Bug fix](https://github.com/megumiteam/nginx-cache-controller/compare/1.9.0...2.0.0)
= 1.9.0 =
* Add filter "nginxchampuru_db_cached_url"
= 1.8.0 =
* Add WP-CLI Support
= 1.7.0 =
* problem when redirect after clear cache fixed.
* Add filter hook to the HTTP responce header.
= 1.6.1 =
* Bug on SSL fixed
= 1.2.0 =
* fix large site issues.(timeout when too many urls)
* add like box to admin panel
= 1.0.0 =
* Rename to "Nginx Cache Controller"
* Cache Controll
* Auto-Flush Cache
= 0.1.0 =
* The first release.
== Credits ==
This plug-in is not guaranteed though the user of WordPress can freely use this plug-in free of charge regardless of the purpose.
The author must acknowledge the thing that the operation guarantee and the support in this plug-in use are not done at all beforehand.
== Contact ==
* https://github.com/miya0001/nginx-champuru