aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-nocache.md
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-nocache.md')
-rw-r--r--vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-nocache.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-nocache.md b/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-nocache.md
new file mode 100644
index 000000000..a5922f838
--- /dev/null
+++ b/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-nocache.md
@@ -0,0 +1,23 @@
+{nocache} {#language.function.nocache}
+=========
+
+`{nocache}` is used to disable caching of a template section. Every
+`{nocache}` must be paired with a matching `{/nocache}`.
+
+> **Note**
+>
+> 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}
+
+
+
+The above code will output the current date on a cached page.
+
+See also the [caching section](#caching).