srcache + mogilefs module
agentzh
agentzh at gmail.com
Sun Apr 22 03:31:53 UTC 2012
On Sun, Apr 22, 2012 at 5:49 AM, haad <nginx-forum at nginx.us> wrote:
>> Basically, you should rely on ngx_srcache's
>> srcache_store to store the
>> responses automatically for you, rather than
>> inserting values into
>> memcached yourself.
>
> But from attached log or this new [1] dump it seems tat srcache_store is
> never called.
> I was not aware of this, it should be added to documentation :).
>
According to your debug log, the ngx_mogilefs module left your
location /share/ and did an internal redirect to an
automatically-generated location named /mogstored_spare_34991976/ or
so (maybe created by the mogilefs_pass directive):
[debug] 7200#0: *1058 internal redirect: "/mogstored_spare_34991976/?"
And you didn't configure ngx_srcache at all in this anonymous location
and hence no srcache_store love here.
AFAIK, the ngx_eval module also does something similar here (i.e.,
creating nested locations automatically).
> [1] https://gist.github.com/2439805
>
Just search for "internal redirect" in your debug log above.
Also, you should be careful when using the "if" directive in location
blocks because it also created a nested anonymous location. See the
discussion here:
http://agentzh.blogspot.com/2011/03/how-nginx-location-if-works.html
Best regards,
-agentzh
More information about the nginx
mailing list