mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-01 04:41:37 +01:00
Improved another chunk of the designers docs
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user