StackOverflowNewbie
StackOverflowNewbie

Reputation: 40653

Smarty Caching - how to force it?

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

Answers (1)

mohrt
mohrt

Reputation: 58

Smarty3: {$myvar nocache} or surround the block with {nocache}{/nocache} tags.

http://www.smarty.net/docs/en/caching.tpl

Upvotes: 2

Related Questions