Proxy cache for php site

lpugoy nginx-forum at nginx.us
Tue Nov 8 16:56:53 UTC 2011


I'm sorry, but I don't understand the effect of cookies on proxy
caching. I'm trying to implement the same configuration as the one
referred to, and I'm also having trouble in that it doesn't seem to be
caching. I'm also using httperf. For every request the backend does
return a different cookie. Is this what is preventing the caching from
happening? 

In the debug log, I found some entries that refer to the cache. They are
below:

2011/11/08 20:51:45 [debug] 21434#0: *1 http cache key:
"httpwww.site.comGET/"
2011/11/08 20:51:45 [debug] 21434#0: *1 http script var: ""
2011/11/08 20:51:45 [debug] 21434#0: *1 add cleanup: 091D56A4
2011/11/08 20:51:45 [debug] 21434#0: shmtx lock
2011/11/08 20:51:45 [debug] 21434#0: slab alloc: 76 slot: 4
2011/11/08 20:51:45 [debug] 21434#0: slab alloc: B6F6B000
2011/11/08 20:51:45 [debug] 21434#0: shmtx unlock
2011/11/08 20:51:45 [debug] 21434#0: *1 http file cache exists: -5 e:0
2011/11/08 20:51:45 [debug] 21434#0: *1 cache file:
"/var/cache/nginx/5/86/629d786ceca8ff787779a3e4ccdc8865"
2011/11/08 20:51:45 [debug] 21434#0: *1 add cleanup: 091D56E8
2011/11/08 20:51:45 [debug] 21434#0: *1 http upstream cache: -5

What do they mean? Thank you.

Jon Bennett Wrote:
-------------------------------------------------------
> Hi Appa,
> 
> got it sorted thanks, had cookies being written
> all the time and that
> was stopping it. Now in production, many thanks!
> 
> Jon

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,216756,217993#msg-217993



More information about the nginx mailing list