fixed cache

This commit is contained in:
Alexander Karpov 2023-07-29 18:51:56 +03:00
parent b93b29d06c
commit c0c6c5f8d4

View File

@ -63,7 +63,7 @@
CACHEOPS = { CACHEOPS = {
"auth.user": {"ops": "get", "timeout": 60 * 15}, "auth.user": {"ops": "get", "timeout": 60 * 15},
"auth.*": {"ops": ("fetch", "get"), "timeout": 60 * 2}, "auth.*": {"ops": ("fetch", "get"), "timeout": 60 * 2},
"blog.*": {"ops": ("fetch", "get"), "timeout": 15}, "blog.post": {"ops": ("fetch", "get"), "timeout": 15},
"auth.permission": {"ops": "all", "timeout": 60 * 15}, "auth.permission": {"ops": "all", "timeout": 60 * 15},
} }
CACHEOPS_REDIS = env.str("REDIS_URL") CACHEOPS_REDIS = env.str("REDIS_URL")