I want the cache timeout to be configurable:
- N --> number of seconds
- None --> cache for every
- 0 --> do not cache at all.
I am not sure if timeout=0 really does what I want.
I could not find it explicitly in the docs:
https://docs.djangoproject.com/en/1.7/topics/cache/#basic-usage
I don't want to put a lot of "if default_cache_timeout==0: ...." into my code.
It would be nice if django would support this. This would make my code simpler.
Does cache.set(key, timeout=0) do no caching at all?
If yes, shouldn't this be stated in the docs explicitly?
Regards,
Thomas Güttler
--
Thomas Güttler
http://thomas-guettler.de/