找到了Smarty的几个参数,摘要一下
2008-02-01 阅读 214
This tells Smarty whether to check for recompiling or not. Recompiling
does not need to happen unless a template or config file is changed.
Typically you enable this during development, and disable for
production.
`@var` boolean
var $compile_check = true;
是否每次检查
This forces templates to compile every time. Useful for development
or debugging.
@var boolean
var $force_compile = false;
每次组装
This enables template caching.
0 = no caching
1 = use class cache_lifetime value
2 = use cache_lifetime in cache file
@var integer
var $caching = 0;
缓存一个template文件
smarty 模板 配置
更新于 2023年03月28日