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

51 lines
2.4 KiB
XML
Raw Normal View History

2007-04-21 12:13:34 +00:00
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
2009-06-14 07:23:39 +00:00
<!-- EN-Revision: 2972 Maintainer: takagi Status: ready -->
2007-04-21 12:13:34 +00:00
<!-- CREDITS: mat-sh,daichi,joe -->
<sect1 id="variable.compile.check">
<title>$compile_check</title>
<para>
SmartyはPHPアプリケーションの各リクエスト時に、
現在のテンプレートが最後に訪れた時から変更されている(タイムスタンプが異なる)
かどうかを検査します。もし変更されているならば、
そのテンプレートを再コンパイルします。
そのテンプレートが一度もコンパイルされていなかった場合は、
この設定に関係なくコンパイルを行います。この変数のデフォルトは &true; です。
</para>
<para>
テンプレートが変更される予定がないアプリケーションがいったん稼動に入れば、
もはや compile_checkの ステップは必要ありません。
最大限のパフォーマンスを向上させるために、必ず
<parameter>$compile_check</parameter>&false; に設定して下さい。
また、この設定を &false; に変更した後にテンプレートファイルが変更された場合、
そのテンプレートが再コンパイルされる事は「ない」ので変更は反映されない事に注意してください。
<link linkend="variable.caching"><parameter>$caching</parameter></link>
<parameter>$compile_check</parameter> が共に有効ならば、
テンプレートファイルが更新されるとキャッシュファイルが再生成されます
詳細は、<link linkend="variable.force.compile">
<parameter>$force_compile</parameter></link> および <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
-->