Migrate to Podman

This commit is contained in:
2023-07-06 16:11:02 +00:00
parent b4424a7782
commit 8ef39ffe48
7 changed files with 82 additions and 78 deletions

View File

@@ -57,18 +57,20 @@ INSTALLED_APPS = [
]
# Performance optimisations
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache",
"LOCATION": "unix:///var/run/socks/redis.sock",
"OPTIONS": {
"db": "10",
"parser_class": "redis.connection.HiredisParser",
"pool_class": "redis.BlockingConnectionPool",
},
}
}
# Performance optimisations # COMMENTED DUE TO PODMAN ISSUE
# CACHES = {
# "default": {
# "BACKEND": "django.core.cache.backends.redis.RedisCache",
# "LOCATION": "unix:///var/run/socks/redis.sock",
# "OPTIONS": {
# "db": "10",
# "parser_class": "redis.connection.HiredisParser",
# "pool_class": "redis.BlockingConnectionPool",
# },
# }
# }
# END PODMAN ISSUE
# CACHE_MIDDLEWARE_ALIAS = 'default'
# CACHE_MIDDLEWARE_SECONDS = '600'
# CACHE_MIDDLEWARE_KEY_PREFIX = ''