Decrease feed cache length to 150

This commit is contained in:
Tanner Collin 2019-12-01 22:18:14 +00:00
parent 569e5b16ca
commit e231cd5c31

View File

@ -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