Opened 10 years ago

Closed 10 years ago

Last modified 10 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: UI/UX:

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 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by anonymous

Attachment: inclusion_tag.diff added

comment:1 Changed 10 years ago by Adrian Holovaty

Resolution: wontfix
Status: newclosed

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

comment:2 in reply to:  1 Changed 10 years ago by anonymous

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 Changed 10 years ago by Michael Axiak <axiak@…>

Sorry for posting anonymously, that was me.

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