diff --git a/common.py b/common.py index e8c5450..1067fab 100644 --- a/common.py +++ b/common.py @@ -73,7 +73,7 @@ DOMAIN_BLOCKLIST = frozenset(( _DEFAULT_SIGNATURE_USER = None -CACHE_TIME = timedelta(seconds=10) +CACHE_TIME = timedelta(seconds=60) PAGE_SIZE = 20 diff --git a/config.py b/config.py index 964349b..0ef321e 100644 --- a/config.py +++ b/config.py @@ -11,6 +11,7 @@ SESSION_COOKIE_HTTPONLY = True # Not strict because we flash messages after cross-site redirects for OAuth, # which strict blocks. SESSION_COOKIE_SAMESITE = 'Lax' +CACHE_THRESHOLD = 3000 if appengine_info.DEBUG: ENV = 'development'