[uWSGI] Issue with uwsgi caching

Pinakee BIswas pinakee at waltzz.com
Thu Mar 17 11:55:51 CET 2016


Hi Riccardo,

I have reduced the rules:

cache2 = name=jivaanacache,items=5000,purge_lru=1,expires=300

route-if = empty:${cookie[COOKIE1]} goto:not_logged_in
route-run = continue:


route-label = not_logged_in
route = ^(/basket|/checkout|/accounts|/dashboard) continue:
route = ^/(.*) 
cache:key=${REQUEST_URI}_${cookie[COOKIE2]},name=jivaanacache
; store each successful request (200 http status code) for '/'
route = ^/(.*) 
cachestore:key=${REQUEST_URI}_${cookie[COOKIE2]},name=jivaanacache

Not seeing the issue right now. Also, I have upgraded uwsgi to 2.0.12.

But would appreciate if you could let me know the following:

1. How do I verify that the cache is working?
2. Is there a way to generate the error log separately when uwsgi is 
running as a daemon(using daemonize)?

Thanks,
Pinakee


On 17/03/16 4:10 pm, Riccardo Magliocchetti wrote:
> Hello Pinakee,
>
> please don't top quote.
>
> Il 17/03/2016 11:27, Pinakee BIswas ha scritto:
>> Hi Riccardo,
>>
>> Thanks for the prompt response.
>>
>> The version is uWSGI==2.0.11.2
>>
>> I think this is the latest version. Not sure if there is any version 
>> beyond this.
>
> It's not, there's 2.0.12 out but it has nothing cache specific AFAICT. 
> Can you please reduce your rules to one than can reproduce the issue? 
> It would be easier to help you then.
>



More information about the uWSGI mailing list