Skip to content

Commit 99b4f0f

Browse files
committed
Prettify README using Markdown.
1 parent 1cf5b03 commit 99b4f0f

File tree

2 files changed

+120
-50
lines changed

2 files changed

+120
-50
lines changed

README

Lines changed: 0 additions & 50 deletions
This file was deleted.

README.md

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
About
2+
=====
3+
`ngx_cache_purge` is `nginx` module which adds ability to purge content from
4+
`FastCGI`, `proxy`, `SCGI` and `uWSGI` caches.
5+
6+
7+
Sponsors
8+
========
9+
Work on the original patch was fully funded by [yo.se](http://yo.se).
10+
11+
12+
Status
13+
======
14+
This module is production-ready and it's compatible with following nginx
15+
releases:
16+
17+
- 0.7.x (tested with 0.7.60 to 0.7.67),
18+
- 0.8.x (tested with 0.8.0 to 0.8.50).
19+
20+
21+
Configuration directives
22+
========================
23+
fastcgi_cache_purge
24+
-------------------
25+
* **syntax**: `fastcgi_cache_purge zone_name key`
26+
* **default**: `none`
27+
* **context**: `location`
28+
29+
Sets area and key used for purging selected pages from `FastCGI`'s cache.
30+
31+
32+
proxy_cache_purge
33+
-----------------
34+
* **syntax**: `proxy_cache_purge zone_name key`
35+
* **default**: `none`
36+
* **context**: `location`
37+
38+
Sets area and key used for purging selected pages from `proxy`'s cache.
39+
40+
41+
scgi_cache_purge
42+
----------------
43+
* **syntax**: `scgi_cache_purge zone_name key`
44+
* **default**: `none`
45+
* **context**: `location`
46+
47+
Sets area and key used for purging selected pages from `SCGI`'s cache.
48+
49+
50+
uwsgi_cache_purge
51+
-----------------
52+
* **syntax**: `uwsgi_cache_purge zone_name key`
53+
* **default**: `none`
54+
* **context**: `location`
55+
56+
Sets area and key used for purging selected pages from `uWSGI`'s cache.
57+
58+
59+
Sample configuration
60+
====================
61+
http {
62+
proxy_cache_path /tmp/cache keys_zone=tmpcache:10m;
63+
64+
server {
65+
location / {
66+
proxy_pass http://127.0.0.1:8000;
67+
proxy_cache tmpcache;
68+
proxy_cache_key $uri$is_args$args;
69+
}
70+
71+
location ~ /purge(/.*) {
72+
allow 127.0.0.1;
73+
deny all;
74+
proxy_cache_purge tmpcache $1$is_args$args;
75+
}
76+
}
77+
}
78+
79+
80+
Testing
81+
=======
82+
`ngx_cache_purge` comes with complete test suite based on [Test::Nginx](http://github.com/agentzh/test-nginx).
83+
84+
You can test it by running:
85+
86+
`$ prove`
87+
88+
89+
License
90+
=======
91+
Copyright (c) 2009-2010, FRiCKLE Piotr Sikora <[email protected]>
92+
All rights reserved.
93+
94+
This project was fully funded by yo.se.
95+
96+
Redistribution and use in source and binary forms, with or without
97+
modification, are permitted provided that the following conditions
98+
are met:
99+
1. Redistributions of source code must retain the above copyright
100+
notice, this list of conditions and the following disclaimer.
101+
2. Redistributions in binary form must reproduce the above copyright
102+
notice, this list of conditions and the following disclaimer in the
103+
documentation and/or other materials provided with the distribution.
104+
105+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
106+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
107+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
108+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
109+
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
110+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
111+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
112+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
113+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
114+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
115+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
116+
117+
118+
See also
119+
========
120+
- [ngx_slowfs_cache](http://github.com/FRiCKLE/ngx_slowfs_cache).

0 commit comments

Comments
 (0)