Home
Blogs
Questions

Home

About Us

Blogs

Questions

Monetize

Post Job

banner

Questions about django-caching

Read more about django-caching

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - django-caching

Django Redis Caching how can i set cache timeout to none (never expiring cache) in class base view

I'm using redis server for caching. Using django-redis package. Below is my setting file : CACHES = { 'default': { 'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://...
test-img

Ganesh sali

django

django-rest-framework

redis

django-redis

django-caching

Votes: 0

Answers: 0

test-img

how can i invalidate page cache in django

How can I invalidate page cache in django. I am trying to cache a page displays a list that is unique for each user using django-rest-framework. I can not figure out how to invalidate the page cache w...
test-img

user14665310

python

django

django-rest-framework

django-caching

Votes: 0

Answers: 1

Latest Answer

You can move your invalidation logic to your models. For example, in order to invalidate a cache when an object is added/updated, you can override model's save method. e.g: def save(self, *args, **kwa...
test-img

Moein Babapour

Posts

Questions

Blogs

Where knowledge meets opportunity!

About

  • Company
  • Monetize your knowledge
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved