Fix loading content from cache
This commit is contained in:
parent
33b53e8ab4
commit
dcc0a61560
@ -602,7 +602,7 @@ class ContentApi:
|
|||||||
def _get_cache(self, key, allow_expired=False):
|
def _get_cache(self, key, allow_expired=False):
|
||||||
""" Get an item from the cache """
|
""" Get an item from the cache """
|
||||||
filename = ('.'.join(key) + '.json').replace('/', '_')
|
filename = ('.'.join(key) + '.json').replace('/', '_')
|
||||||
fullpath = self._cache_path + filename
|
fullpath = os.path.join(self._cache_path, filename)
|
||||||
|
|
||||||
if not os.path.exists(fullpath):
|
if not os.path.exists(fullpath):
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user