From 8a8499805b8b8fddd0caa88ed8a2fafb98795fff Mon Sep 17 00:00:00 2001 From: Michael Barton Date: Tue, 13 Aug 2013 15:54:19 -0700 Subject: [PATCH] memcache timeout parameter bug in get_info container and account info currently never expires from cache due to a bug in get_info. Change-Id: Ia2b4dfa768d6017dd809cdd5f0568f4831f87ade --- swift/proxy/controllers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift/proxy/controllers/base.py b/swift/proxy/controllers/base.py index 8973fea22f..821cc65df5 100644 --- a/swift/proxy/controllers/base.py +++ b/swift/proxy/controllers/base.py @@ -311,7 +311,7 @@ def _set_info_cache(app, env, account, container, resp): else: info = headers_to_account_info(resp.headers, resp.status_int) if memcache: - memcache.set(cache_key, info, cache_time) + memcache.set(cache_key, info, time=cache_time) env[env_key] = info