diff options
| author | rr- | 2016-08-31 22:22:06 +0200 |
|---|---|---|
| committer | rr- | 2016-08-31 22:22:06 +0200 |
| commit | eff0e002f2a7ecef8e09eb088e1835cbb16834c1 (patch) | |
| tree | c55c7a994eff77f35282646c78ded22911ee9aee | |
| parent | 988664117a8fcbff0adf9f78f9426b546165eafb (diff) | |
server/info: increase hdd usage cache time to 48h
| -rw-r--r-- | server/szurubooru/api/info_api.py | 2 |
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 |