Skip to content

Commit e243485

Browse files
committed
Added a note on caching
1 parent 3a9f140 commit e243485

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/templating/introduction.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ the ``views/hello.php`` file and returns the output text. The second argument
5252
of ``render`` is an array of variables to use in the template. In this
5353
example, the result will be ``Hello, Fabien!``.
5454

55+
.. note::
56+
57+
Templates will be cached in the memory of the engine. This means that if
58+
you render the same template multiple times in the same request, the
59+
template will only be loaded once from the file system.
60+
5561
The ``$view`` variable
5662
----------------------
5763

0 commit comments

Comments
 (0)