Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3056 closed enhancement (invalid)

generic views: ability to disable caching

Reported by: Michael Samoylov <michael.samoylov@…> Owned by: Jacob
Component: Generic views Version: master
Severity: normal Keywords: cache
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

first of all i want to thank all django developers and contributors for such awesome framework.
the question is: it would be nice if all generic views got no_cache=True{False} parameter to avoid caching of i.e. backoffice's pages based on generic views
thanks

Change History (4)

comment:1 Changed 10 years ago by Adrian Holovaty

Hi Michael,

I'm not sure what you're looking for here. What is backoffice? And what caching are you referring to -- the Django cache framework?

comment:2 Changed 10 years ago by Michael Samoylov <michael.samoylov@…>

yes, it's all about django cache and generic views. a possibility to enable/disable caching with generic views

comment:3 Changed 10 years ago by Adrian Holovaty

Resolution: invalid
Status: newclosed

Generic views don't do any caching on their own. Any caching that they do is caching that *you* (the developer) have added yourself, so I don't see how generic views should gain functionality to disable caching.

comment:4 Changed 10 years ago by James Bennett

It sounds like he's just caching his entire site, in which case it might be more productive in his case to use the finer-grained caching, or use wrappers around generic views to add the never_cache decorator.

Note: See TracTickets for help on using tickets.
Back to Top