mirror of https://gitlab.com/bashrc2/epicyon
Reduce maximum posts
parent
514630d3b9
commit
4d349544ed
|
@ -4714,7 +4714,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=100000
|
httpd.maxPostsInBox=32000
|
||||||
httpd.domain=domain
|
httpd.domain=domain
|
||||||
httpd.port=port
|
httpd.port=port
|
||||||
httpd.domainFull=domain
|
httpd.domainFull=domain
|
||||||
|
|
|
@ -1031,7 +1031,7 @@ if args.changepassword:
|
||||||
archiveWeeks=4
|
archiveWeeks=4
|
||||||
if args.archiveWeeks:
|
if args.archiveWeeks:
|
||||||
archiveWeeks=args.archiveWeeks
|
archiveWeeks=args.archiveWeeks
|
||||||
archiveMaxPosts=100000
|
archiveMaxPosts=32000
|
||||||
if args.archiveMaxPosts:
|
if args.archiveMaxPosts:
|
||||||
archiveMaxPosts=args.archiveMaxPosts
|
archiveMaxPosts=args.archiveMaxPosts
|
||||||
|
|
||||||
|
|
6
posts.py
6
posts.py
|
@ -2116,7 +2116,7 @@ def createBoxBase(session,baseDir: str,boxname: str, \
|
||||||
return boxHeader
|
return boxHeader
|
||||||
return boxItems
|
return boxItems
|
||||||
|
|
||||||
def expireCache(baseDir: str,personCache: {},httpPrefix: str,archiveDir: str,maxPostsInBox=100000):
|
def expireCache(baseDir: str,personCache: {},httpPrefix: str,archiveDir: str,maxPostsInBox=32000):
|
||||||
"""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:
|
||||||
|
@ -2125,7 +2125,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=100000) -> None:
|
def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=32000) -> None:
|
||||||
"""Archives posts for all accounts
|
"""Archives posts for all accounts
|
||||||
"""
|
"""
|
||||||
if archiveDir:
|
if archiveDir:
|
||||||
|
@ -2159,7 +2159,7 @@ def archivePosts(baseDir: str,httpPrefix: str,archiveDir: str,maxPostsInBox=1000
|
||||||
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=100000) -> None:
|
boxname: str,archiveDir: str,maxPostsInBox=32000) -> 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
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue