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
parent d746d2913f
commit 8157ee7811
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