main
Bob Mottram 2019-11-29 22:52:55 +00:00
parent 2b59cd1490
commit 915288c7e1
2 changed files with 2 additions and 0 deletions

View File

@ -2406,6 +2406,7 @@ def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str
# remove cached html posts
postCacheFilename=os.path.join(postCacheDir,postFilename).replace('.json','.html')
print('CACHE: '+postCacheFilename)
if os.path.isfile(postCacheFilename):
os.remove(postCacheFilename)

View File

@ -453,6 +453,7 @@ def getCachedPostFilename(baseDir: str,nickname: str,domain: str, \
if '#' in cachedPostFilename:
cachedPostFilename=cachedPostFilename.split('#',1)[0]
cachedPostFilename=cachedPostFilename.replace('/','#')+'.html'
print('CACHE: 2'+cachedPostFilename)
return cachedPostFilename
def removePostFromCache(postJsonObject: {},recentPostsCache: {}):