Repos / pytaku / 5b53ca85e9
commit 5b53ca85e9f1c8fddf5ef339791235e3ba6b80be
Author: Bùi Thành Nhân <hi@imnhan.com>
Date: Sun Aug 30 16:51:28 2020 +0700
more reasonable cache defaults
diff --git a/src/pytaku/conf.py b/src/pytaku/conf.py
index 3ceb731..5fe3d0e 100644
--- a/src/pytaku/conf.py
+++ b/src/pytaku/conf.py
@@ -11,8 +11,8 @@ class Config(GoodConf):
PROXY_PREFIX = Value(default="")
# ^ use this to e.g. point to a CDN's domain
PROXY_CACHE_DIR = Value(default="proxy_cache")
- PROXY_CACHE_MAX_SIZE = Value(default=1024 * 1024 * 1024) # 1GiB in bytes
- PROXY_CACHE_MAX_AGE = Value(default=3600 * 24 * 7) # 7 weeks in seconds
+ PROXY_CACHE_MAX_SIZE = Value(default=1024 * 1024 * 1024 * 5) # 5GiB in bytes
+ PROXY_CACHE_MAX_AGE = Value(default=3600 * 24 * 2) # 2 days in seconds
config = Config(default_files=["pytaku.conf.json"])