Improved another chunk of the designers docs

This commit is contained in:
Simon Wisselink
2023-02-06 10:40:00 +01:00
parent 833ba57d42
commit 4c6afd6b37
24 changed files with 1232 additions and 1318 deletions

View File

@@ -1,5 +1,4 @@
{nocache} {#language.function.nocache}
=========
# {nocache}
`{nocache}` is used to disable caching of a template section. Every
`{nocache}` must be paired with a matching `{/nocache}`.
@@ -9,15 +8,13 @@
> Be sure any variables used within a non-cached section are also
> assigned from PHP when the page is loaded from the cache.
Today's date is
{nocache}
{$smarty.now|date_format}
{/nocache}
```smarty
Today's date is
{nocache}
{$smarty.now|date_format}
{/nocache}
```
The above code will output the current date on a cached page.
See also the [caching section](#caching).
See also the [caching section](../../programmers/caching.md).