Hello!
On Thu, Sep 17, 2015 at 5:03 PM, Harshad Yeola wrote:
> I am using WordPress with redis as page cache. I have installed nginx with
> srcache-nginx-module.
> I have explicitely define in nginx config which response is to be cached.
> Still sometimes it cache non 200 response.
> Here is part of my configuration.
>
Apparently you need to provide more details for the issue. Otherwise I
cannot debug the issue for you. It'll be best if you can provide a
*minimal* and *standalone* example that can easily reproduce the issue
on *my* side. Failing that, please provide the *complete* nginx
debugging logs for the very guilty request storing the non-200
responses and the subsequent request fetching it.
Also, you are recommended to try out the latest OpenResty formal
release if you are not using it already.
Please check out the following document for more details on reporting
a problem effectively:
http://openresty.org/faq.html#how-should-i-report-a-problem
Oh, BTW, you may want to enable the connection pool for redis via the
standard keepalive directive in the upstream {} block. This can give a
nice speedup and you don't have to worry exhaust the port range.
Regards,
-agentzh