Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2799 closed enhancement (wontfix)

Support caching of template tags in inclusion_tag

Reported by: ludo@… Owned by: Adrian Holovaty
Component: Template system Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

A simple patch to use the cache system from the inclusion_tag decorator.

Attachments (1)

inclusion_tag.diff (2.6 KB ) - added by anonymous 18 years ago.

Download all attachments as: .zip

Change History (4)

by anonymous, 18 years ago

Attachment: inclusion_tag.diff added

comment:1 by Adrian Holovaty, 18 years ago

Resolution: wontfix
Status: newclosed

This introduces unneeded complexity to the template tag; let's keep it simple.

in reply to:  1 comment:2 by anonymous, 18 years ago

Replying to adrian:

This introduces unneeded complexity to the template tag; let's keep it simple.

Is there any place this would be useful to put into Django? I ended up recreating this patch without knowing it (it's a little different and documented at http://axiak.net/blog/2007/5/22/cached-inclusion-tag/).

There are so many other caching things and it seems to me caching on blocks of a template would be very useful for a wide array of applications.

comment:3 by Michael Axiak <axiak@…>, 18 years ago

Sorry for posting anonymously, that was me.

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