Opened 18 years ago

Closed 18 years ago

Last modified 18 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: dev
Severity: normal Keywords: cache
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 by Adrian Holovaty, 18 years ago

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 by Michael Samoylov <michael.samoylov@…>, 18 years ago

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

comment:3 by Adrian Holovaty, 18 years ago

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 by James Bennett, 18 years ago

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