Files
smarty/docs/en/programmers/api-variables/variable-compile-check.xml

49 lines
1.8 KiB
XML
Raw Normal View History

2004-04-13 11:47:32 +00:00
<?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
2006-09-27 06:28:21 +00:00
setting. By default this variable is set to &true;.
2005-09-13 17:44:48 +00:00
</para>
<para>Once an application is
2006-09-27 06:28:21 +00:00
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
2004-04-13 11:47:32 +00:00
template file is changed, you will *not* see the change since the
template will not get recompiled. If
2006-09-27 06:28:21 +00:00
<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
2004-04-13 11:47:32 +00:00
an involved template file or config file was updated. See <link
2006-09-27 06:28:21 +00:00
linkend="variable.force.compile">
<parameter>$force_compile</parameter></link> and <link
linkend="api.clear.compiled.tpl"><varname>clear_compiled_tpl()</varname>
</link>.
2004-04-13 11:47:32 +00:00
</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
2006-09-27 06:28:21 +00:00
-->