add texts, translated by silex [at] bk [dot] ru

This commit is contained in:
tony2001
2004-06-17 07:59:48 +00:00
parent ee62c3b546
commit 59889b5af0
23 changed files with 352 additions and 321 deletions
@@ -1,23 +1,25 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml version="1.0" encoding="windows-1251"?>
<!-- $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. 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 <link
linkend="variable.force.compile">$force_compile</link> or <link
linkend="api.clear.compiled.tpl">clear_compiled_tpl</link>.
</para>
<!-- EN-Revision: 1.1 -->
<sect1 id="variable.compile.check">
<title>$compile_check</title>
<para>
При каждом вызове РНР-приложения Smarty проверяет, изменился или нет
текущий шаблон с момента последней компиляции. Если шаблон изменился,
он перекомпилируется. В случае, если шаблон еще не был скомпилирован,
его компиляция производится с игнорированием значения этого параметра.
По умолчанию эта переменная установлена в true. В момент, когда приложение
начнет работать в реальных условиях (шаблоны больше не будут изменяться),
этап проверки компиляции становится ненужным. В этом случае проверьте, чтобы
переменная $compile_check была установлена в "false" для достижения
максимальной производительности. Учтите, что если вы присвоите этой переменной
значение "false", и файл шаблона будет изменен, вы *НЕ* увидите изменений
в выводе шаблона до тех пор, пока шаблон не будет перекомпилирован. Если
caching и compile_check активированы, файлы кэша будут регенерированы при
обновлении связанных с ним шаблонов или конфигурационных файлов. См.
<link linkend="variable.force.compile">$force_compile</link> или
<link linkend="api.clear.compiled.tpl">clear_compiled_tpl</link>.
</para>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
@@ -38,4 +40,4 @@ End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
-->