Re: cannot set cache keys

2008-03-03 Thread merric
The problem seems to be with LOCMEM. I changed the CACHE_BACKEND setting to a DB and cache worked fine. In LOCMEM the cache seem to get set OK, but then cannot be retrieved correctly. I don't get any error messages, it just doesn't want to work. I tried this on two different machines, one ru

Re: cannot set cache keys

2008-03-03 Thread merric
On futher testing I am getting some very weird results. On occasions the cache key seems to get created, but expires almost immediately, so the next time through the "cache_working" returns to "NO". --~--~-~--~~~---~--~~ You received this message because you ar

cannot set cache keys

2008-03-03 Thread merric
I can't get cache to work inside a view. Can anybody point out where I'm going wrong In my settings file I have the following:- CACHE_BACKEND = 'locmem:///' The view is as follows:- def offers(request): from django.core.cache import cache cache_time=60*60*24 cache_name = "offers"