Log time for html cache saves

main
Bob Mottram 2019-11-16 14:07:54 +00:00
parent d7ff49cfc4
commit 1e9bffa6a3
1 changed files with 3 additions and 1 deletions

View File

@ -1625,12 +1625,14 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \
if not unitTest: if not unitTest:
if debug: if debug:
print('DEBUG: saving inbox post as html to cache') print('DEBUG: saving inbox post as html to cache')
htmlCacheStartTime=time.time()
inboxStorePostToHtmlCache(translate,baseDir,httpPrefix, \ inboxStorePostToHtmlCache(translate,baseDir,httpPrefix, \
session,cachedWebfingers,personCache, \ session,cachedWebfingers,personCache, \
handle.split('@')[0],domain,port, \ handle.split('@')[0],domain,port, \
postJsonObject,allowDeletion) postJsonObject,allowDeletion)
if debug: if debug:
print('DEBUG: saved inbox post as html to cache') timeDiff=str(int((time.time()-htmlCacheStartTime)*1000))
print('DEBUG: saved inbox post as html to cache in '+timeDiff+' mS')
# send the post out to group members # send the post out to group members
if isGroup: if isGroup: