From dcf34cd3c26dac0508a306bc856fdd7a33d7ba8c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 18 Oct 2020 20:41:18 +0100 Subject: [PATCH] Fix cache filename --- utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index b06c15296..ed797450b 100644 --- a/utils.py +++ b/utils.py @@ -591,14 +591,14 @@ def clearFromPostCaches(baseDir: str, postId: str) -> None: """Clears cached html for the given post, so that edits to news will appear """ - filename = postId + '.html' + filename = '/postcache/' + postId + '.html' for subdir, dirs, files in os.walk(baseDir + '/accounts'): for acct in dirs: if '@' not in acct: continue if 'inbox@' in acct: continue - cacheDir = os.path.join(baseDir + '/accounts/postcache', acct) + cacheDir = os.path.join(baseDir + '/accounts', acct) postFilename = cacheDir + filename print('clearFromPostCaches: ' + postFilename) if os.path.isfile(postFilename):