PHP Classes

File: htdocs/xoops_lib/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-nocache.md

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/xoops_lib/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-nocache.md   Download  
File: htdocs/xoops_lib/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-nocache.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 1 month ago
Size: 485 bytes
 

Contents

Class file image Download

{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.