Skip to content

\$force_compile {/programmers/api-variables/variable-force-compile/}

这个选项强制 Smarty 在每次调用时重新编译模板。这个设置会覆盖$compile_check。默认情况下,它是 FALSE。这在开发和调试时非常方便。在生产环境中不应使用此选项。如果启用了$caching,则缓存文件将在每次重新生成。