简体   繁体   中英

How to tell Django not to use the cache for a request?

I am using Django's caching framework with Memcached: https://docs.djangoproject.com/en/2.2/topics/cache/#django-s-cache-framework

It's working great. The only issue I am having is sometimes, I want to make a request to my Django server and tell it to bypass the cache. But I couldn't find any documentation on this.

How do I make a request to a Django server and tell it to not use the cache for this particular request?

How about put additional logic in request processor? For example, send additional header (or get or post parameter or cookie) and if header exists in request then bypass the cache.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM