diff options
Diffstat (limited to 'docs/designers/language-builtin-functions/language-function-nocache.md')
| -rw-r--r-- | docs/designers/language-builtin-functions/language-function-nocache.md | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/docs/designers/language-builtin-functions/language-function-nocache.md b/docs/designers/language-builtin-functions/language-function-nocache.md index a5922f83..e6d8453f 100644 --- a/docs/designers/language-builtin-functions/language-function-nocache.md +++ b/docs/designers/language-builtin-functions/language-function-nocache.md @@ -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). |
