mirror of https://gitlab.com/bashrc2/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 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:
|
||||||
|
|
Loading…
Reference in New Issue