forked from indymedia/epicyon
Log time for html cache saves
parent
d7ff49cfc4
commit
1e9bffa6a3
4
inbox.py
4
inbox.py
|
@ -1625,12 +1625,14 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \
|
|||
if not unitTest:
|
||||
if debug:
|
||||
print('DEBUG: saving inbox post as html to cache')
|
||||
htmlCacheStartTime=time.time()
|
||||
inboxStorePostToHtmlCache(translate,baseDir,httpPrefix, \
|
||||
session,cachedWebfingers,personCache, \
|
||||
handle.split('@')[0],domain,port, \
|
||||
postJsonObject,allowDeletion)
|
||||
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
|
||||
if isGroup:
|
||||
|
|
Loading…
Reference in New Issue