From 915288c7e18547713e6155744348dd7a3aac51f4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 29 Nov 2019 22:52:55 +0000 Subject: [PATCH] Debug --- posts.py | 1 + utils.py | 1 + 2 files changed, 2 insertions(+) diff --git a/posts.py b/posts.py index 921f2819d..9f0b7fc1f 100644 --- a/posts.py +++ b/posts.py @@ -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) diff --git a/utils.py b/utils.py index 272d1e22e..8275f606c 100644 --- a/utils.py +++ b/utils.py @@ -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: {}):