From 7c8ef72854e89d01990010e92458bdf271ec0fdf Mon Sep 17 00:00:00 2001 From: Murilo Rosa Date: Wed, 28 Feb 2024 18:34:49 +0000 Subject: [PATCH] remove redis caching in prod --- config/settings/production.py | 26 +++++++++++++------------- requirements/base.txt | 6 +++--- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/config/settings/production.py b/config/settings/production.py index 8889c60..06e4fc6 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -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 @@ -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 # ------------------------------------------------------------------------------ diff --git a/requirements/base.txt b/requirements/base.txt index c40dfb1..31247ac 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -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 # ------------------------------------------------------------------------------ @@ -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