You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I wanted to see if this is because of how I am using the cache in django or if I am missing an option in the django-redis config
What I want is for it to be saved in memory and not on disk, that is, when reloading with ctrl + f5, for example, the back response is no longer cached, is it possible?
thank you!
settings.py
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/1",
"KEY_PREFIX": 'alfadatizando',
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
}
}
CELERY_BROKER_URL = 'redis://127.0.0.1:6379/'
# save Celery task results in Django's database
CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6379/'
# this allows you to schedule items in the Django admin.
CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers.DatabaseScheduler'
DEFAULT_CACHING_TIME = 60 * 60 * 12
I tried to do the solution given in the answer but that is to avoid caching, I didn't know if this was happening because of how django works or what it was like.
I leave a picture of how a cached resource looks in the browser network tab, I would like that the endpoint is stored in cache memory and not on disk because being on the client side even if I delete the keys from the redis server is still cached I explain?
Hello! I wanted to see if this is because of how I am using the cache in django or if I am missing an option in the django-redis config
What I want is for it to be saved in memory and not on disk, that is, when reloading with ctrl + f5, for example, the back response is no longer cached, is it possible?
thank you!
settings.py
api.py
The text was updated successfully, but these errors were encountered: