Skip to content

Commit 662c077

Browse files
committed
doc: added a flow chart for ngx_srcache.
1 parent d4fed34 commit 662c077

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ Usually, [memc-nginx-module](http://github.com/agentzh/memc-nginx-module) is use
168168

169169
For main requests, the [srcache_fetch](#srcache_fetch) directive works at the end of the access phase, so the [standard access module](http://nginx.org/en/docs/http/ngx_http_access_module.html)'s [allow](http://nginx.org/en/docs/http/ngx_http_access_module.html#allow) and [deny](http://nginx.org/en/docs/http/ngx_http_access_module.html#deny) direcives run *before* ours, which is usually the desired behavior for security reasons.
170170

171+
The workflow of this module looks like below:
172+
173+
![srcache flowchart](http://agentzh.org/misc/image/srcache-flowchart.png "srcache flowchart")
174+
171175
[Back to TOC](#table-of-contents)
172176

173177
Subrequest caching

doc/HttpSRCacheModule.wiki

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ Usually, [[HttpMemcModule]] is used together with this module to provide a concr
102102

103103
For main requests, the [[#srcache_fetch|srcache_fetch]] directive works at the end of the access phase, so the [[HttpAccessModule|standard access module]]'s [[HttpAccessModule#allow|allow]] and [[HttpAccessModule#deny|deny]] direcives run ''before'' ours, which is usually the desired behavior for security reasons.
104104

105+
The workflow of this module looks like below:
106+
107+
http://agentzh.org/misc/image/srcache-flowchart.png
108+
105109
== Subrequest caching ==
106110

107111
For ''subrequests'', we explicitly '''disallow''' the use of this module because it's too difficult to get right. There used to be an implementation but it was buggy and I finally gave up fixing it and abandoned it.

0 commit comments

Comments
 (0)