Return value on setCache

This commit is contained in:
Ruud
2011-11-08 23:36:06 +01:00
parent 40b060edc8
commit 5ab5dfddbb
+1
View File
@@ -169,6 +169,7 @@ class Plugin(object):
def setCache(self, cache_key, value, timeout = 300):
log.debug('Setting cache %s' % cache_key)
Env.get('cache').set(cache_key, value, timeout)
return value
def isDisabled(self):
return not self.isEnabled()