|
@ -259,8 +259,8 @@ class Plugin(object): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def getCache(self, cache_key, url = None, **kwargs): |
|
|
def getCache(self, cache_key, url = None, **kwargs): |
|
|
cache_key = md5(ss(cache_key)) |
|
|
cache_key_md5 = md5(ss(cache_key)) |
|
|
cache = Env.get('cache').get(cache_key) |
|
|
cache = Env.get('cache').get(cache_key_md5) |
|
|
if cache: |
|
|
if cache: |
|
|
if not Env.get('dev'): log.debug('Getting cache %s', cache_key) |
|
|
if not Env.get('dev'): log.debug('Getting cache %s', cache_key) |
|
|
return cache |
|
|
return cache |
|
@ -284,8 +284,9 @@ class Plugin(object): |
|
|
return '' |
|
|
return '' |
|
|
|
|
|
|
|
|
def setCache(self, cache_key, value, timeout = 300): |
|
|
def setCache(self, cache_key, value, timeout = 300): |
|
|
|
|
|
cache_key_md5 = md5(ss(cache_key)) |
|
|
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_md5, value, timeout) |
|
|
return value |
|
|
return value |
|
|
|
|
|
|
|
|
def createNzbName(self, data, movie): |
|
|
def createNzbName(self, data, movie): |
|
|