Opened 9 years ago

Closed 9 years ago

Last modified 9 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:


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

Change History (4)

comment:1 Changed 9 years ago by adrian

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 9 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 9 years ago by adrian

  • Resolution set to invalid
  • Status changed from new to closed

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 9 years ago by ubernostrum

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