Skip to content

Commit

Permalink
remove redis caching in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmurilo75 committed Feb 28, 2024
1 parent 054fcf7 commit 7c8ef72
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions config/settings/production.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: E501
# ruff: noqa: E501 ERA001
from .base import * # noqa: F403
from .base import DATABASES
from .base import INSTALLED_APPS
Expand All @@ -21,18 +21,18 @@

# CACHES
# ------------------------------------------------------------------------------
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": env("REDIS_URL"),
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
# Mimicing memcache behavior.
# https://github.com/jazzband/django-redis#memcached-exceptions-behavior
"IGNORE_EXCEPTIONS": True,
},
},
}
# CACHES = {
# "default": {
# "BACKEND": "django_redis.cache.RedisCache",
# "LOCATION": env("REDIS_URL"),
# "OPTIONS": {
# "CLIENT_CLASS": "django_redis.client.DefaultClient",
# # Mimicing memcache behavior.
# # https://github.com/jazzband/django-redis#memcached-exceptions-behavior
# "IGNORE_EXCEPTIONS": True,
# },
# },
# }

# SECURITY
# ------------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Pillow==10.2.0 # https://github.com/python-pillow/Pillow
rcssmin==1.1.1 # https://github.com/ndparker/rcssmin
argon2-cffi==23.1.0 # https://github.com/hynek/argon2_cffi
whitenoise==6.6.0 # https://github.com/evansd/whitenoise
redis==5.0.1 # https://github.com/redis/redis-py
hiredis==2.3.2 # https://github.com/redis/hiredis-py
# redis==5.0.1 # https://github.com/redis/redis-py
# hiredis==2.3.2 # https://github.com/redis/hiredis-py

# Django
# ------------------------------------------------------------------------------
Expand All @@ -15,7 +15,7 @@ django-allauth[mfa]==0.61.1 # https://github.com/pennersr/django-allauth
django-crispy-forms==2.1 # https://github.com/django-crispy-forms/django-crispy-forms
crispy-bootstrap5==2024.2 # https://github.com/django-crispy-forms/crispy-bootstrap5
django-compressor==4.4 # https://github.com/django-compressor/django-compressor
django-redis==5.4.0 # https://github.com/jazzband/django-redis
# django-redis==5.4.0 # https://github.com/jazzband/django-redis
# Django REST Framework
djangorestframework==3.14.0 # https://github.com/encode/django-rest-framework
django-cors-headers==4.3.1 # https://github.com/adamchainz/django-cors-headers
Expand Down

0 comments on commit 7c8ef72

Please sign in to comment.