zerok / django-flatblocks

DEPRECATED: Use jazzband/django-flatblocks instead
BSD 3-Clause "New" or "Revised" License
169 stars 47 forks source link

Tag caches by default #7

Closed zerok closed 13 years ago

zerok commented 13 years ago

Thanks to a little quirk within the memcache backend of Django caching with the timeout 0 actually caches with the default-timeout. Since this behaviour seems to be limited to the memcache backend, a cache_time of 0 should circumvent the whole caching infrastructure while None should use the default timeout.

Thanks to Benjie Chen for reporting this.