If the value of smarty is dynamic to the template, the generated cache is also dynamic. if the value of smarty & nbsp; is dynamic to the template, the generated Cache & nbsp; it's also dynamic. why ??? Example: $ smarty-& gt; caching & nbsp; true; $ smarty-& gt; cache_lifetime & nbsp; 50100 if the value transmitted to the template by smarty is dynamic, the generated cache is also dynamic.
If the value passed to the template by smarty is dynamic, the generated cache is also dynamic. why ???
Example: $ smarty-> caching = true;
$ Smarty-> cache_lifetime = 50100;
$ Showtime = date ("YmdHms ")
// Set the cache file name
$ Smarty-> assign ("Name", "Fred ");
$ Smarty-> assign ("Time", $ showtime );
The value of $ showtime page refresh received in the template file remains unchanged. isn't it cached ??
Why does it change ??????
Share To: caching? =? True; $ smarty-> cache_lifeti... 'data-pics = ''>
------ Solution --------------------
Yes, it will not change. Use a lower version of smarty.