Remove from memory cache first

main
Bob Mottram 2021-05-19 19:58:27 +01:00
parent 6765f7b02f
commit 8bae4c7e2d
1 changed files with 1 additions and 1 deletions

View File

@ -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: