mirror of https://gitlab.com/bashrc2/epicyon
Remove from memory cache first
parent
6765f7b02f
commit
8bae4c7e2d
2
utils.py
2
utils.py
|
@ -1895,13 +1895,13 @@ def updateLikesCollection(recentPostsCache: {},
|
||||||
return
|
return
|
||||||
# remove any cached version of this post so that the
|
# remove any cached version of this post so that the
|
||||||
# like icon is changed
|
# like icon is changed
|
||||||
|
removePostFromCache(postJsonObject, recentPostsCache)
|
||||||
nickname = getNicknameFromActor(actor)
|
nickname = getNicknameFromActor(actor)
|
||||||
cachedPostFilename = getCachedPostFilename(baseDir, nickname,
|
cachedPostFilename = getCachedPostFilename(baseDir, nickname,
|
||||||
domain, postJsonObject)
|
domain, postJsonObject)
|
||||||
if cachedPostFilename:
|
if cachedPostFilename:
|
||||||
if os.path.isfile(cachedPostFilename):
|
if os.path.isfile(cachedPostFilename):
|
||||||
os.remove(cachedPostFilename)
|
os.remove(cachedPostFilename)
|
||||||
removePostFromCache(postJsonObject, recentPostsCache)
|
|
||||||
|
|
||||||
if not postJsonObject.get('object'):
|
if not postJsonObject.get('object'):
|
||||||
if debug:
|
if debug:
|
||||||
|
|
Loading…
Reference in New Issue