From e231cd5c31bd5d490b79774d5cd91f3bce924473 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 1 Dec 2019 22:18:14 +0000 Subject: [PATCH] Decrease feed cache length to 150 --- apiserver/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/server.py b/apiserver/server.py index 10e7a99..ad31fdf 100644 --- a/apiserver/server.py +++ b/apiserver/server.py @@ -25,7 +25,7 @@ monkey.patch_all() archive.init() -CACHE_LENGTH = 300 +CACHE_LENGTH = 150 DATA_FILE = 'data/data' news_index = 0 @@ -182,7 +182,7 @@ def feed_thread(): else: logging.info('Skipping update - no story #' + str(news_index+1)) - gevent.sleep(3) + gevent.sleep(6) news_index += 1 if news_index == CACHE_LENGTH: news_index = 0