Welcome! Log In Create A New Profile

Advanced

Re: srcache + mogilefs module

agentzh
April 21, 2012 11:32PM
On Sun, Apr 22, 2012 at 5:49 AM, haad <nginx-forum@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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

srcache + mogilefs module

haad April 20, 2012 04:16PM

Re: srcache + mogilefs module

agentzh April 21, 2012 12:46AM

Re: srcache + mogilefs module

haad April 21, 2012 05:49PM

Re: srcache + mogilefs module

agentzh April 21, 2012 11:32PM

Re: srcache + mogilefs module

haad April 22, 2012 02:14AM

Re: srcache + mogilefs module

agentzh April 22, 2012 11:42PM

Re: srcache + mogilefs module

haad April 23, 2012 06:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 202
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready