Update memory cache after loading from html post cache

main
Bob Mottram 2019-11-24 17:44:31 +00:00
parent 3259190161
commit 87d5cba6d2
1 changed files with 4 additions and 1 deletions

View File

@ -1923,7 +1923,10 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
loadIndividualPostAsHtmlFromCache(baseDir,nickname,domain, \
postJsonObject)
if postHtml:
return preparePostFromHtmlCache(postHtml,boxName,pageNumber)
postHtml=preparePostFromHtmlCache(postHtml,boxName,pageNumber)
updateRecentPostsCache(recentPostsCache,maxRecentPosts, \
postJsonObject,postHtml)
return postHtml
# don't create new html within the bookmarks timeline
# it should already have been created for the inbox