?
このドキュメントでは、 php中國語ネットマニュアル リリース
Upon each invocation of the PHP application, Smarty tests to see if the
current template has changed (different time stamp) since the last time
it was compiled. If it has changed, it recompiles that template. If the
template has not been compiled, it will compile regardless of this
setting. By default this variable is set to true. Once an application is
put into production (templates won't be changing), the compile_check
step is no longer needed. Be sure to set $compile_check to "false" for
maximal performance. Note that if you change this to "false" and a
template file is changed, you will *not* see the change since the
template will not get recompiled. If caching is enabled and
compile_check is enabled, then the cache files will get regenerated if
an involved template file or config file was updated. See $force_compile or clear_compiled_tpl.
每次調用PHP應用程序,Smarty 會試著查看自上次編譯時間以來,當前模板是否被修改過.如果修改過了,她會重新編譯那個模板.如果模板還沒有被編譯過,她將編譯模板而不管編譯檢查如何設置.默認情況下編譯檢查這個變量設置為true.一旦一個應用程序投入產品中(模板將不會修改了),就不再需要編譯檢查這一步了.為了最大性能,確定將$compile_check設為"false".注意:如果設為了"false",雖然模板文件被修改,但你不會看到修改結果,因為模板沒有得到重新編譯.如果啟動了緩存和編譯檢查,一旦有關模板文件或配置文件被更新,緩存文件將會重建.