Increase maximum posts

main2
Bob Mottram 2019-09-14 21:47:05 +01:00
parent 78fcf1618f
commit 91534ba302
3 changed files with 5 additions and 5 deletions

View File

@ -3635,7 +3635,7 @@ def runDaemon(projectVersion, \
httpd.maxPostLength=1024*1024*30 httpd.maxPostLength=1024*1024*30
httpd.maxMediaSize=httpd.maxPostLength httpd.maxMediaSize=httpd.maxPostLength
httpd.maxMessageLength=5000 httpd.maxMessageLength=5000
httpd.maxPostsInBox=256 httpd.maxPostsInBox=1024
httpd.domain=domain httpd.domain=domain
httpd.port=port httpd.port=port
httpd.domainFull=domain httpd.domainFull=domain

View File

@ -964,7 +964,7 @@ if args.changepassword:
archiveWeeks=4 archiveWeeks=4
if args.archiveWeeks: if args.archiveWeeks:
archiveWeeks=args.archiveWeeks archiveWeeks=args.archiveWeeks
archiveMaxPosts=256 archiveMaxPosts=1024
if args.archiveMaxPosts: if args.archiveMaxPosts:
archiveMaxPosts=args.archiveMaxPosts archiveMaxPosts=args.archiveMaxPosts

View File

@ -1857,7 +1857,7 @@ def createBoxBase(baseDir: str,boxname: str, \
return boxHeader return boxHeader
return boxItems return boxItems
def expireCache(baseDir: str,personCache: {},httpPrefix: str,archiveDir: str,maxPostsInBox=256): def expireCache(baseDir: str,personCache: {},httpPrefix: str,archiveDir: str,maxPostsInBox=1024):
"""Thread used to expire actors from the cache and archive old posts """Thread used to expire actors from the cache and archive old posts
""" """
while True: while True:
@ -1866,7 +1866,7 @@ def expireCache(baseDir: str,personCache: {},httpPrefix: str,archiveDir: str,max
expirePersonCache(basedir,personCache) expirePersonCache(basedir,personCache)
archivePosts(baseDir,httpPrefix,archiveDir,maxPostsInBox) archivePosts(baseDir,httpPrefix,archiveDir,maxPostsInBox)
def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=256) -> None: def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=1024) -> None:
"""Archives posts for all accounts """Archives posts for all accounts
""" """
if archiveDir: if archiveDir:
@ -1900,7 +1900,7 @@ def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=256)
maxPostsInBox) maxPostsInBox)
def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str, \ def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str, \
boxname: str,archiveDir: str,maxPostsInBox=256) -> None: boxname: str,archiveDir: str,maxPostsInBox=1024) -> None:
"""Retain a maximum number of posts within the given box """Retain a maximum number of posts within the given box
Move any others to an archive directory Move any others to an archive directory
""" """