Php-Smarty-cache 2 (26), phpsmarty-cache 26. Php-Smarty-cache 2 (26), phpsmarty-cache 26 a page, some data caches, some data is not cached, that is, local cache l $ smarty-assign (var, value, true) The third parameter is php-Smarty-cache 2 (26) and phpsmarty-cache 26.
On a page, some data is cached, and some data is not cached, that is, local cache.
L $ smarty-> assign ("var", "value", true)
Third parameter: indicates whether the cache is not cached
L {$ var nocache = true}
Use the nocache parameter after the template variable quantity
L {nocache} {/nocache}
Use a nocache flag, so that all content between them is not cached.
Apply Smarty in MVC
I. MVC
1. M: Model
2. V: View
3. C: Controller
We need to replace our previous View component with Smarty.
Expires (26), phpsmarty-cache 26 some data caches, some data is not cached, that is, local cache l $ smarty-assign (var, value, true) the third parameter...