Cache GitHub update check on startup

* Fixes Tautulli/Tautulli-Issues#184
This commit is contained in:
JonnyWong16 2020-10-25 11:39:48 -07:00
commit 8157ee7811
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 59 additions and 19 deletions

View file

@ -300,7 +300,7 @@ def initialize(config_file):
# Check for new versions
if CONFIG.CHECK_GITHUB_ON_STARTUP and CONFIG.CHECK_GITHUB:
try:
versioncheck.check_update()
versioncheck.check_update(use_cache=True)
except:
logger.exception("Unhandled exception")
LATEST_VERSION = CURRENT_VERSION