From eff0e002f2a7ecef8e09eb088e1835cbb16834c1 Mon Sep 17 00:00:00 2001 From: rr- Date: Wed, 31 Aug 2016 22:22:06 +0200 Subject: [PATCH] server/info: increase hdd usage cache time to 48h --- server/szurubooru/api/info_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/szurubooru/api/info_api.py b/server/szurubooru/api/info_api.py index 8e74cb72..d815485a 100644 --- a/server/szurubooru/api/info_api.py +++ b/server/szurubooru/api/info_api.py @@ -11,7 +11,7 @@ _cache_result = None def _get_disk_usage(): global _cache_time, _cache_result # pylint: disable=global-statement - threshold = datetime.timedelta(hours=1) + threshold = datetime.timedelta(hours=48) now = datetime.datetime.utcnow() if _cache_time and _cache_time > now - threshold: return _cache_result