Author: adrian
Date: 2006-08-18 10:10:08 -0500 (Fri, 18 Aug 2006)
New Revision: 3611

Modified:
   django/trunk/django/core/cache/backends/memcached.py
Log:
Fixed #2561 -- memcached cache backend no longer ignores default timeout. 
Thanks for the report and patch, Christopher Lenz

Modified: django/trunk/django/core/cache/backends/memcached.py
===================================================================
--- django/trunk/django/core/cache/backends/memcached.py        2006-08-18 
14:23:57 UTC (rev 3610)
+++ django/trunk/django/core/cache/backends/memcached.py        2006-08-18 
15:10:08 UTC (rev 3611)
@@ -20,7 +20,7 @@
             return val
 
     def set(self, key, value, timeout=0):
-        self._cache.set(key, value, timeout)
+        self._cache.set(key, value, timeout or self.default_timeout)
 
     def delete(self, key):
         self._cache.delete(key)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to