aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrr-2016-08-31 22:22:06 +0200
committerrr-2016-08-31 22:22:06 +0200
commiteff0e002f2a7ecef8e09eb088e1835cbb16834c1 (patch)
treec55c7a994eff77f35282646c78ded22911ee9aee
parent988664117a8fcbff0adf9f78f9426b546165eafb (diff)
server/info: increase hdd usage cache time to 48h
-rw-r--r--server/szurubooru/api/info_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/szurubooru/api/info_api.py b/server/szurubooru/api/info_api.py
index 8e74cb7..d815485 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

© 2015 - 2026 Jakob L. Kreuze