From d392e0a15d1785702a955b6be56dac5504ba8e6b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 24 Jun 2020 10:40:17 +0100 Subject: [PATCH] Regenerate sessions less frequently --- inbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inbox.py b/inbox.py index d1e6ed56..8cf40675 100644 --- a/inbox.py +++ b/inbox.py @@ -2349,8 +2349,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int, currTime = int(time.time()) # recreate the session periodically - if not session or currTime - sessionLastUpdate > 1200: - print('Creating inbox queue session at 20min interval') + if not session or currTime - sessionLastUpdate > 21600: + print('Regenerating inbox queue session at 6hr interval') session = createSession(proxyType) if not session: continue