Settings inconsistent, CACHE_TIMEOUT + keyedcache

Issue #986 resolved
Franck Bret created an issue

satchmo depends on keyed_cache + livesettings when you make an install with CACHE_SETTINGS disabled (ie without any cache settings defined), it raise an error about CACHE_TIMEOUT like this : File "/home/franck/workspace/nacsrv/cowri/lib/djangoproject/satchmo/apps/keyedcache/init.py", line 25, in <module> _CACHE_ENABLED = settings.CACHE_TIMEOUT > 0 File "/usr/local/lib/python2.6/dist-packages/django/utils/functional.py", line 269, in getattr return getattr(self._wrapped, name) AttributeError: 'Settings' object has no attribute 'CACHE_TIMEOUT'

I think the message on how to use it (put 0 seconds to disable it ??) is not clear, also it should raise about the fact you should have a cache activated to use it. Actually you can install without cache, it just need to have a CACHE_TIMEOUT defined in your settings...

Patch attached to be more clear...

Comments (4)

  1. Log in to comment