From aa6510baf23f47760032a034eaa6bf6d21429341 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 24 Sep 2019 14:29:58 +0100 Subject: [PATCH] Increase max posts --- daemon.py | 2 +- epicyon.py | 2 +- posts.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon.py b/daemon.py index 12785397..044cd30e 100644 --- a/daemon.py +++ b/daemon.py @@ -3760,7 +3760,7 @@ def runDaemon(projectVersion, \ httpd.maxPostLength=1024*1024*30 httpd.maxMediaSize=httpd.maxPostLength httpd.maxMessageLength=5000 - httpd.maxPostsInBox=10000 + httpd.maxPostsInBox=100000 httpd.domain=domain httpd.port=port httpd.domainFull=domain diff --git a/epicyon.py b/epicyon.py index bfd8d192..997ebec6 100644 --- a/epicyon.py +++ b/epicyon.py @@ -964,7 +964,7 @@ if args.changepassword: archiveWeeks=4 if args.archiveWeeks: archiveWeeks=args.archiveWeeks -archiveMaxPosts=10000 +archiveMaxPosts=100000 if args.archiveMaxPosts: archiveMaxPosts=args.archiveMaxPosts diff --git a/posts.py b/posts.py index 19687002..ca43c576 100644 --- a/posts.py +++ b/posts.py @@ -1913,7 +1913,7 @@ def createBoxBase(baseDir: str,boxname: str, \ return boxHeader return boxItems -def expireCache(baseDir: str,personCache: {},httpPrefix: str,archiveDir: str,maxPostsInBox=10000): +def expireCache(baseDir: str,personCache: {},httpPrefix: str,archiveDir: str,maxPostsInBox=100000): """Thread used to expire actors from the cache and archive old posts """ while True: @@ -1922,7 +1922,7 @@ def expireCache(baseDir: str,personCache: {},httpPrefix: str,archiveDir: str,max expirePersonCache(basedir,personCache) archivePosts(baseDir,httpPrefix,archiveDir,maxPostsInBox) -def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=10000) -> None: +def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=100000) -> None: """Archives posts for all accounts """ if archiveDir: @@ -1956,7 +1956,7 @@ def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=1000 maxPostsInBox) def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str, \ - boxname: str,archiveDir: str,maxPostsInBox=10000) -> None: + boxname: str,archiveDir: str,maxPostsInBox=100000) -> None: """Retain a maximum number of posts within the given box Move any others to an archive directory """