Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2561 -- memcached cache backend no longer ignores default time…

…out. Thanks for the report and patch, Christopher Lenz

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3611 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit eef88a6d2cf404894b5b3f1bcb4c986ddcf03a91 1 parent e7a91d3
Adrian Holovaty authored August 18, 2006
2  django/core/cache/backends/memcached.py
@@ -20,7 +20,7 @@ def get(self, key, default=None):
20 20
             return val
21 21
 
22 22
     def set(self, key, value, timeout=0):
23  
-        self._cache.set(key, value, timeout)
  23
+        self._cache.set(key, value, timeout or self.default_timeout)
24 24
 
25 25
     def delete(self, key):
26 26
         self._cache.delete(key)

0 notes on commit eef88a6

Please sign in to comment.
Something went wrong with that request. Please try again.