From cb207e09a9a6b8e1b08867afbbf7a4de401ac9d7 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 21 Aug 2011 13:31:47 +0200 Subject: [PATCH] Allow timeout for cache --- couchpotato/core/providers/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/providers/base.py b/couchpotato/core/providers/base.py index d9641dd5..99d59328 100644 --- a/couchpotato/core/providers/base.py +++ b/couchpotato/core/providers/base.py @@ -29,9 +29,9 @@ class Provider(Plugin): log.debug('Getting cache %s' % cache_key) return cache - def setCache(self, cache_key, value): + def setCache(self, cache_key, value, timeout = 300): log.debug('Setting cache %s' % cache_key) - Env.get('cache').set(cache_key, value) + Env.get('cache').set(cache_key, value, timeout) def isAvailable(self, test_url):