django-fancy-cache
django-fancy-cache copied to clipboard
0 / None for cache timeout doesn't work as expected
As of Django 1.7 (to be out soon), setting the cache timeout to None
means "never expire." In the fancy cache middleware.py
, however, boolean checks against the timeout are done, making setting an infinite timeout impossible.
Current workaround: set timeout to a huge integer.