Reputation: 40653
I'm assigning values to Smarty variables before loading the template file. Is there a way to tell Smarty to never cache the values of a particular variable? In some cases, like in search results, I don't want Smarty caching the values.
Upvotes: 1
Views: 502
Reputation: 58
Smarty3: {$myvar nocache} or surround the block with {nocache}{/nocache} tags.
http://www.smarty.net/docs/en/caching.tpl
Upvotes: 2