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
|
||||
# remove any cached version of this post so that the
|
||||
# like icon is changed
|
||||
removePostFromCache(postJsonObject, recentPostsCache)
|
||||
nickname = getNicknameFromActor(actor)
|
||||
cachedPostFilename = getCachedPostFilename(baseDir, nickname,
|
||||
domain, postJsonObject)
|
||||
if cachedPostFilename:
|
||||
if os.path.isfile(cachedPostFilename):
|
||||
os.remove(cachedPostFilename)
|
||||
removePostFromCache(postJsonObject, recentPostsCache)
|
||||
|
||||
if not postJsonObject.get('object'):
|
||||
if debug:
|
||||
|
|
Loading…
Reference in New Issue