Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2799 closed enhancement (wontfix)

Support caching of template tags in inclusion_tag

Reported by: ludo@… Owned by: adrian
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 8 years ago.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by anonymous

comment:1 follow-up: Changed 8 years ago by adrian

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

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

comment:2 in reply to: ↑ 1 Changed 8 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 8 years ago by Michael Axiak <axiak@…>

Sorry for posting anonymously, that was me.

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