Decrease feed cache length to 150

master
Tanner Collin 4 years ago
parent 569e5b16ca
commit e231cd5c31
  1. 4
      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

Loading…
Cancel
Save