Feature #28544
Compilation of Fluid Templates into PHP files
Status: | Resolved | Start date: | 2011-07-28 | ||
---|---|---|---|---|---|
Priority: | Should have | Due date: | |||
Assigned To: | Sebastian Kurfuerst | % Done: | 57% |
||
Category: | Core | ||||
Target version: | - | ||||
Has patch: | No |
Subtasks
Associated revisions
[!!!][FEATURE] Compilation of Fluid templates to PHP files
This adds a compile step to the parsing process of templates, layouts and
partials.
If no compiled cache file exists, Fluid will create it while parsing the
respective Fluid template.
The cache file is invalidated as soon as the template/layout/partial
has been modified (or if caches are flushed).
This speeds up the rendering process by factor 2-5!
Breaking change:
- AbstractViewHelper::$arguments are no longer an object but an array.
If you used $this->arguments->hasArgument() in your custom ViewHelpers,
you'll have to replace this with $this->hasArgument()
Change-Id: Ia1e1ccd364a1d966b6c840273351ab00410c55cf
Resolves: #28544
History
#1 Updated by Sebastian Kurfuerst about 4 years ago
this speeds fluid up by a factor of 2 - 5 (depending on the template); and reduces memory by a factor of 2-50
#2 Updated by Mr. Hudson about 4 years ago
Patch set 1 of change Ia1e1ccd364a1d966b6c840273351ab00410c55cf has been pushed to the review server.
It is available at http://review.typo3.org/4004
#3 Updated by Sebastian Kurfuerst about 4 years ago
- Status changed from Accepted to Resolved
- % Done changed from 57 to 100
Applied in changeset 63660b9bd1da1218d11fff5b05f02ac0d0638f65.