forked from indymedia/epicyon
Debug
parent
2b59cd1490
commit
915288c7e1
1
posts.py
1
posts.py
|
@ -2406,6 +2406,7 @@ def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str
|
||||||
|
|
||||||
# remove cached html posts
|
# remove cached html posts
|
||||||
postCacheFilename=os.path.join(postCacheDir,postFilename).replace('.json','.html')
|
postCacheFilename=os.path.join(postCacheDir,postFilename).replace('.json','.html')
|
||||||
|
print('CACHE: '+postCacheFilename)
|
||||||
if os.path.isfile(postCacheFilename):
|
if os.path.isfile(postCacheFilename):
|
||||||
os.remove(postCacheFilename)
|
os.remove(postCacheFilename)
|
||||||
|
|
||||||
|
|
1
utils.py
1
utils.py
|
@ -453,6 +453,7 @@ def getCachedPostFilename(baseDir: str,nickname: str,domain: str, \
|
||||||
if '#' in cachedPostFilename:
|
if '#' in cachedPostFilename:
|
||||||
cachedPostFilename=cachedPostFilename.split('#',1)[0]
|
cachedPostFilename=cachedPostFilename.split('#',1)[0]
|
||||||
cachedPostFilename=cachedPostFilename.replace('/','#')+'.html'
|
cachedPostFilename=cachedPostFilename.replace('/','#')+'.html'
|
||||||
|
print('CACHE: 2'+cachedPostFilename)
|
||||||
return cachedPostFilename
|
return cachedPostFilename
|
||||||
|
|
||||||
def removePostFromCache(postJsonObject: {},recentPostsCache: {}):
|
def removePostFromCache(postJsonObject: {},recentPostsCache: {}):
|
||||||
|
|
Loading…
Reference in New Issue