|
@ -241,9 +241,11 @@ class Plugin(object): |
|
|
self.setCache(cache_key, data, timeout = cache_timeout) |
|
|
self.setCache(cache_key, data, timeout = cache_timeout) |
|
|
return data |
|
|
return data |
|
|
except: |
|
|
except: |
|
|
if not kwargs.get('show_error'): |
|
|
if not kwargs.get('show_error', True): |
|
|
raise |
|
|
raise |
|
|
|
|
|
|
|
|
|
|
|
return '' |
|
|
|
|
|
|
|
|
def setCache(self, cache_key, value, timeout = 300): |
|
|
def setCache(self, cache_key, value, timeout = 300): |
|
|
log.debug('Setting cache %s', cache_key) |
|
|
log.debug('Setting cache %s', cache_key) |
|
|
Env.get('cache').set(cache_key, value, timeout) |
|
|
Env.get('cache').set(cache_key, value, timeout) |
|
|