django-fancy-cache icon indicating copy to clipboard operation
django-fancy-cache copied to clipboard

0 / None for cache timeout doesn't work as expected

Open philipn opened this issue 9 years ago • 0 comments

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.

philipn avatar Aug 18 '14 10:08 philipn