Increase max posts

main2
Bob Mottram 2019-09-24 14:27:16 +01:00
parent 6dc55a1988
commit 3bd99d04ca
3 changed files with 5 additions and 5 deletions

View File

@ -3760,7 +3760,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=1024 httpd.maxPostsInBox=10000
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=1024 archiveMaxPosts=10000
if args.archiveMaxPosts: if args.archiveMaxPosts:
archiveMaxPosts=args.archiveMaxPosts archiveMaxPosts=args.archiveMaxPosts

View File

@ -1913,7 +1913,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=1024): def expireCache(baseDir: str,personCache: {},httpPrefix: str,archiveDir: str,maxPostsInBox=10000):
"""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:
@ -1922,7 +1922,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=1024) -> None: def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=10000) -> None:
"""Archives posts for all accounts """Archives posts for all accounts
""" """
if archiveDir: if archiveDir:
@ -1956,7 +1956,7 @@ def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=1024
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=1024) -> None: boxname: str,archiveDir: str,maxPostsInBox=10000) -> 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
""" """