Files
smarty/docs/en/programmers/api-variables/variable-compile-check.xml
2006-09-27 06:28:21 +00:00

49 lines
1.8 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="variable.compile.check">
<title>$compile_check</title>
<para>
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;.
</para>
<para>Once an application is
put into production (ie the templates won't be changing),
the compile check step is no longer needed. Be sure to set
<parameter>$compile_check</parameter> 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
<link linkend="variable.caching"><parameter>$caching</parameter></link>
is enabled and <parameter>$compile_check</parameter> is enabled, then
the cache files will get regenerated if
an involved template file or config file was updated. See <link
linkend="variable.force.compile">
<parameter>$force_compile</parameter></link> and <link
linkend="api.clear.compiled.tpl"><varname>clear_compiled_tpl()</varname>
</link>.
</para>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->