Add support for cache to not expire
|Reported by:||keseldude||Owned by:||otherjacob|
|Component:||Core (Cache system)||Version:||1.0|
|Cc:||mkdzmail@…, justinlilly@…, Jeff Balogh, simon@…, ed@…, ethan.jucovy@…||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||yes||Patch needs improvement:||yes|
I noticed that for the memcached backend, it is not possible (without modifying the backend code) to actually set the cache timeout value to 0, meaning the cache will not expire. Instead, it sets the timeout value to the 'default_timeout', which is not always preferable. This patch should fix that and make the memcached backend that much more flexible.
The path to the file is django/core/cache/backends/memcached.py.
Change History (22)
comment:1 Changed 8 years ago by
|Patch needs improvement:||set|