Vous voici sur le Git Rural du CRAW

Commit dd14ab07 authored by Patrick Houben's avatar Patrick Houben

rm chacheops

parent aaf84a9f
......@@ -105,7 +105,7 @@ BOOTSTRAP4 = {
if SERVER_NAME == "pythonprod":
INSTALLED_APPS = [
'cacheops',
# 'cacheops',
'pgcrypto',
'request',
]
......@@ -388,29 +388,29 @@ LOGGING = {
}
}
# https://github.com/Suor/django-cacheops (see also REDIS in ZIM)
REDIS_PASSWD = get_local_setting('REDIS_PASSWD')
# CACHEOPS_REDIS = "redis://localhost:6379/1"
CACHEOPS_REDIS = {
'password': REDIS_PASSWD, # optional
'unix_socket_path': '/var/run/redis/redis.sock' # replaces host and port
}
CACHEOPS_DEGRADE_ON_FAILURE = True
# 60 * 60 = 1h
CACHEOPS_DEFAULTS = {
'timeout': 60*60
}
# Fetch => queryset (on list view) => Only on money
# Get => Instance (On detail View)
# 60 * 15 = 15 minutes
CACHEOPS = {
'accounts.user': {'ops': ('get'), 'timeout': 60*15},
# 'accounts.*': {'ops': ('fetch', 'get')},
'money.*': {'ops': 'fetch', 'timeout': 60*15},
}
# # https://github.com/Suor/django-cacheops (see also REDIS in ZIM)
# REDIS_PASSWD = get_local_setting('REDIS_PASSWD')
# # CACHEOPS_REDIS = "redis://localhost:6379/1"
# CACHEOPS_REDIS = {
# 'password': REDIS_PASSWD, # optional
# 'unix_socket_path': '/var/run/redis/redis.sock' # replaces host and port
# }
# CACHEOPS_DEGRADE_ON_FAILURE = True
# # 60 * 60 = 1h
# CACHEOPS_DEFAULTS = {
# 'timeout': 60*60
# }
# # Fetch => queryset (on list view) => Only on money
# # Get => Instance (On detail View)
# # 60 * 15 = 15 minutes
# CACHEOPS = {
# 'accounts.user': {'ops': ('get'), 'timeout': 60*15},
# # 'accounts.*': {'ops': ('fetch', 'get')},
# 'money.*': {'ops': 'fetch', 'timeout': 60*15},
# }
# HBP 2020 01 22
CKEDITOR_CONFIGS = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment