TPLix

No results for ""

Dynamic

1 min read Jun 2, 2026
--- title: dynamic autoseo: enabled: true theme: learn2 child_type: default admin: children_display_order: collection visible: true ---

dynamic — Marks the contents of the block as dynamic. Which means that it will not be cached.

If you are using Tplix’s caching (as in real output caching, not just the compiled templates thing), and you want some piece of a template not to be cached, just suround it with the {dynamic}...{/dynamic} tag
Examples:

Where template is:


{dynamic}
{math equation="10*(2/5)" assign=amount}
{dump $amount}
{math equation="10*(2/5)" assign=rate}
{$rate|dump}
{/dynamic}
	

The above example will output:


    4.0
    6.0
    

Leave a Comment

Not published. Used to notify you on approval.

Comments are moderated before appearing.