1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #23516 -- Added caching of include tag Template objects

This also speeds up for loops that render the same template
multiple times.
This commit is contained in:
Matthew Somerville
2015-06-04 12:50:07 +01:00
committed by Tim Graham
parent 2a7c59cd88
commit a391b17ad2
3 changed files with 31 additions and 2 deletions

View File

@@ -314,6 +314,9 @@ Templates
* The ``timesince`` and ``timeuntil`` filters were improved to deal with leap
years when given large time spans.
* The ``include`` tag now caches parsed templates objects during template
rendering, speeding up reuse in places such as for loops.
Requests and Responses
^^^^^^^^^^^^^^^^^^^^^^