|
|
@@ -40,9 +40,9 @@
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<row>
|
|
|
- <entry><code>caching</code></entry>
|
|
|
- <entry><code>boolean</code></entry>
|
|
|
- <entry><code>true</code></entry>
|
|
|
+ <entry><emphasis>caching</emphasis></entry>
|
|
|
+ <entry><type>Boolean</type></entry>
|
|
|
+ <entry><constant>TRUE</constant></entry>
|
|
|
<entry>
|
|
|
Включает/отключает кэширование (может быть
|
|
|
очень полезным при отладке кэшируемых
|
|
|
@@ -50,12 +50,12 @@
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>cache_id_prefix</code></entry>
|
|
|
- <entry><code>string</code></entry>
|
|
|
- <entry><code>null</code></entry>
|
|
|
+ <entry><emphasis>cache_id_prefix</emphasis></entry>
|
|
|
+ <entry><type>String</type></entry>
|
|
|
+ <entry><constant>NULL</constant></entry>
|
|
|
<entry>
|
|
|
Префикс для всех идентификаторов кэша. Если
|
|
|
- установлен в <code>null</code>, то префикс не
|
|
|
+ установлен в <constant>NULL</constant>, то префикс не
|
|
|
будет использоваться. Префикс идентификатора
|
|
|
кэша в первую очередь создает пространство
|
|
|
имен в кэше, что позволяет нескольким
|
|
|
@@ -67,30 +67,30 @@
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>lifetime</code></entry>
|
|
|
- <entry><code>int</code></entry>
|
|
|
- <entry><code>3600</code></entry>
|
|
|
+ <entry><emphasis>lifetime</emphasis></entry>
|
|
|
+ <entry><type>Integer</type></entry>
|
|
|
+ <entry>3600</entry>
|
|
|
<entry>
|
|
|
Время жизни кэша (в секундах), если установлен в
|
|
|
- <code>null</code>, то кэш имеет бесконечное
|
|
|
+ <constant>NULL</constant>, то кэш имеет бесконечное
|
|
|
время жизни.
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>logging</code></entry>
|
|
|
- <entry><code>boolean</code></entry>
|
|
|
- <entry><code>false</code></entry>
|
|
|
+ <entry><emphasis>logging</emphasis></entry>
|
|
|
+ <entry><type>Boolean</type></entry>
|
|
|
+ <entry><constant>FALSE</constant></entry>
|
|
|
<entry>
|
|
|
- Если установлен в <code>true</code>, то
|
|
|
+ Если установлен в <constant>TRUE</constant>, то
|
|
|
включается логирование через
|
|
|
<classname>Zend_Log</classname> (но система будет
|
|
|
работать медленнее).
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>write_сontrol</code></entry>
|
|
|
- <entry><code>boolean</code></entry>
|
|
|
- <entry><code>true</code></entry>
|
|
|
+ <entry><emphasis>write_сontrol</emphasis></entry>
|
|
|
+ <entry><type>Boolean</type></entry>
|
|
|
+ <entry><constant>TRUE</constant></entry>
|
|
|
<entry>
|
|
|
Включает/отключает контроль записи (кэш
|
|
|
читается сразу после записи для выявления
|
|
|
@@ -101,9 +101,9 @@
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>automatic_serialization</code></entry>
|
|
|
- <entry><code>boolean</code></entry>
|
|
|
- <entry><code>false</code></entry>
|
|
|
+ <entry><emphasis>automatic_serialization</emphasis></entry>
|
|
|
+ <entry><type>Boolean</type></entry>
|
|
|
+ <entry><constant>FALSE</constant></entry>
|
|
|
<entry>
|
|
|
Включает/отключает автоматическую
|
|
|
сериализацию, она может использоваться для
|
|
|
@@ -112,25 +112,25 @@
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>automatic_cleaning_factor</code></entry>
|
|
|
- <entry><code>int</code></entry>
|
|
|
- <entry><code>10</code></entry>
|
|
|
+ <entry><emphasis>automatic_cleaning_factor</emphasis></entry>
|
|
|
+ <entry><type>Integer</type></entry>
|
|
|
+ <entry>10</entry>
|
|
|
<entry>
|
|
|
Отключает/настраивает процесс автоматической
|
|
|
очистки (сборки мусора):
|
|
|
- <code>0</code> означает, что автоматическая
|
|
|
+ 0 означает, что автоматическая
|
|
|
чистка кэша не производится,
|
|
|
- <code>1</code> означает систематическую очистку
|
|
|
+ 1 означает систематическую очистку
|
|
|
кэша,
|
|
|
- <code>x (integer) > 1</code> означает, что
|
|
|
+ x (integer) > 1 означает, что
|
|
|
автоматическая чистка производится случайным
|
|
|
образом 1 раз на x записей кэша.
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>ignore_user_abort</code></entry>
|
|
|
- <entry><code>boolean</code></entry>
|
|
|
- <entry><code>false</code></entry>
|
|
|
+ <entry><emphasis>ignore_user_abort</emphasis></entry>
|
|
|
+ <entry><type>Boolean</type></entry>
|
|
|
+ <entry><constant>FALSE</constant></entry>
|
|
|
<entry>
|
|
|
Если установлен в true, то ядро будет
|
|
|
устанавливать флаг ignore_user_abort в методе
|
|
|
@@ -150,7 +150,7 @@
|
|
|
</para>
|
|
|
<para>
|
|
|
Если вы храните в кэше только строки (с опцией
|
|
|
- <code>automatic_serialization</code> возможно хранить некоторые
|
|
|
+ <emphasis>automatic_serialization</emphasis> возможно хранить некоторые
|
|
|
булевы значения), вы можете использовать более компактную
|
|
|
конструкцию, как показано ниже:
|
|
|
</para>
|
|
|
@@ -266,7 +266,7 @@ if (!($cache->test($id))) {
|
|
|
<classname>Zend_Cache_Frontend_Output</classname> является фронтэндом,
|
|
|
собирающим выходные данные. Он использует буферизацию вывода
|
|
|
(output buffering) в PHP для сохранения всего, что выводится
|
|
|
- между его методами <code>start()</code> и <code>end()</code>.
|
|
|
+ между его методами <methodname>start()</methodname> и <methodname>end()</methodname>.
|
|
|
</para>
|
|
|
</sect3>
|
|
|
<sect3 id="zend.cache.frontends.output.options">
|
|
|
@@ -313,7 +313,7 @@ echo 'This is never cached ('.time().').';
|
|
|
<para>
|
|
|
<classname>Zend_Cache_Frontend_Function</classname> сохраняет в кэш
|
|
|
результаты вызова функции. Он имеет единственный основной метод
|
|
|
- <code>call()</code>, который принимает имя функции и параметры
|
|
|
+ <methodname>call()</methodname>, который принимает имя функции и параметры
|
|
|
вызова в виде массива.
|
|
|
</para>
|
|
|
</sect3>
|
|
|
@@ -332,25 +332,25 @@ echo 'This is never cached ('.time().').';
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<row>
|
|
|
- <entry><code>cache_by_default</code></entry>
|
|
|
- <entry><code>boolean</code></entry>
|
|
|
- <entry><code>true</code></entry>
|
|
|
+ <entry><emphasis>cache_by_default</emphasis></entry>
|
|
|
+ <entry><type>Boolean</type></entry>
|
|
|
+ <entry><constant>TRUE</constant></entry>
|
|
|
<entry>
|
|
|
Если равен true, то вызовы функции по
|
|
|
умолчанию кэшируются.
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>cached_functions</code></entry>
|
|
|
- <entry><code>array</code></entry>
|
|
|
+ <entry><emphasis>cached_functions</emphasis></entry>
|
|
|
+ <entry><type>Array</type></entry>
|
|
|
<entry></entry>
|
|
|
<entry>
|
|
|
Имена функций, которые всегда кэшируются.
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>non_cached_functions</code></entry>
|
|
|
- <entry><code>array</code></entry>
|
|
|
+ <entry><emphasis>non_cached_functions</emphasis></entry>
|
|
|
+ <entry><type>Array</type></entry>
|
|
|
<entry></entry>
|
|
|
<entry>
|
|
|
Имена функций, которые никогда не должны
|
|
|
@@ -365,8 +365,8 @@ echo 'This is never cached ('.time().').';
|
|
|
<sect3 id="zend.cache.frontends.function.examples">
|
|
|
<title>Примеры</title>
|
|
|
<para>
|
|
|
- Функция <code>call()</code> используется так же, как и
|
|
|
- <code>call_user_func_array()</code> в PHP:
|
|
|
+ Функция <methodname>call()</methodname> используется так же, как и
|
|
|
+ <methodname>call_user_func_array()</methodname> в PHP:
|
|
|
</para>
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
$cache->call('veryExpensiveFunc', $params);
|
|
|
@@ -386,11 +386,11 @@ $cache->call('veryExpensiveFunc', $params);
|
|
|
<para>
|
|
|
Вы можете передавать любые как встроенные, так и
|
|
|
определенные пользователем функции, за исключением
|
|
|
- <code>array()</code>,
|
|
|
- <code>echo()</code>, <code>empty()</code>,
|
|
|
- <code>eval()</code>, <code>exit()</code>,
|
|
|
- <code>isset()</code>, <code>list()</code>,
|
|
|
- <code>print()</code> и <code>unset()</code>.
|
|
|
+ <methodname>array()</methodname>,
|
|
|
+ <methodname>echo()</methodname>, <methodname>empty()</methodname>,
|
|
|
+ <methodname>eval()</methodname>, <methodname>exit()</methodname>,
|
|
|
+ <methodname>isset()</methodname>, <methodname>list()</methodname>,
|
|
|
+ <methodname>print()</methodname> и <methodname>unset()</methodname>.
|
|
|
</para>
|
|
|
</note>
|
|
|
</sect3>
|
|
|
@@ -421,8 +421,8 @@ $cache->call('veryExpensiveFunc', $params);
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<row>
|
|
|
- <entry><code>cached_entity</code> (required)</entry>
|
|
|
- <entry><code>mixed</code></entry>
|
|
|
+ <entry><emphasis>cached_entity</emphasis> (required)</entry>
|
|
|
+ <entry><type>Mixed</type></entry>
|
|
|
<entry></entry>
|
|
|
<entry>
|
|
|
Если установлен как имя класса, то будет
|
|
|
@@ -433,17 +433,17 @@ $cache->call('veryExpensiveFunc', $params);
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>cache_by_default</code></entry>
|
|
|
- <entry><code>boolean</code></entry>
|
|
|
- <entry><code>true</code></entry>
|
|
|
+ <entry><emphasis>cache_by_default</emphasis></entry>
|
|
|
+ <entry><type>Boolean</type></entry>
|
|
|
+ <entry><constant>TRUE</constant></entry>
|
|
|
<entry>
|
|
|
- Если установлен в <code>true</code>, то вызовы
|
|
|
+ Если установлен в <constant>TRUE</constant>, то вызовы
|
|
|
будут кэшироваться по умолчанию.
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>cached_methods</code></entry>
|
|
|
- <entry><code>array</code></entry>
|
|
|
+ <entry><emphasis>cached_methods</emphasis></entry>
|
|
|
+ <entry><type>Array</type></entry>
|
|
|
<entry></entry>
|
|
|
<entry>
|
|
|
Имена методов, которые должны всегда
|
|
|
@@ -451,8 +451,8 @@ $cache->call('veryExpensiveFunc', $params);
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>non_cached_methods</code></entry>
|
|
|
- <entry><code>array</code></entry>
|
|
|
+ <entry><emphasis>non_cached_methods</emphasis></entry>
|
|
|
+ <entry><type>Array</type></entry>
|
|
|
<entry></entry>
|
|
|
<entry>
|
|
|
Имена методов, которые никогда не должны
|
|
|
@@ -553,38 +553,38 @@ $result = $cache->foobar2('1', '2');
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<row>
|
|
|
- <entry><code>master_file</code>
|
|
|
+ <entry><emphasis>master_file</emphasis>
|
|
|
(не рекомендуется к использованию)</entry>
|
|
|
- <entry><code>string</code></entry>
|
|
|
- <entry><code></code></entry>
|
|
|
+ <entry><type>String</type></entry>
|
|
|
+ <entry>''</entry>
|
|
|
<entry>
|
|
|
Полные путь и имя ведущего файла
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>master_files</code></entry>
|
|
|
- <entry><code>array</code></entry>
|
|
|
- <entry><code></code></entry>
|
|
|
+ <entry><emphasis>master_files</emphasis></entry>
|
|
|
+ <entry><type>Array</type></entry>
|
|
|
+ <entry><methodname>array()</methodname></entry>
|
|
|
<entry>
|
|
|
Массив полных путей к ведущим файлам
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>master_files_mode</code></entry>
|
|
|
- <entry><code>string</code></entry>
|
|
|
- <entry><code>Zend_Cache_Frontend_File::MODE_OR</code></entry>
|
|
|
+ <entry><emphasis>master_files_mode</emphasis></entry>
|
|
|
+ <entry><type>String</type></entry>
|
|
|
+ <entry><constant>Zend_Cache_Frontend_File::MODE_OR</constant></entry>
|
|
|
<entry>
|
|
|
- <code>Zend_Cache_Frontend_File::MODE_AND</code> или <code>Zend_Cache_Frontend_File::MODE_OR</code>;
|
|
|
- если <code>MODE_AND</code>, то все ведущие файлы должны быть изменены для того, чтобы кэш стал недействительным
|
|
|
- если <code>MODE_OR</code>, то достаточно изменения одного ведущего файла, чтобы кэш стал недействительным
|
|
|
+ <constant>Zend_Cache_Frontend_File::MODE_AND</constant> или <constant>Zend_Cache_Frontend_File::MODE_OR</constant>;
|
|
|
+ если <constant>MODE_AND</constant>, то все ведущие файлы должны быть изменены для того, чтобы кэш стал недействительным
|
|
|
+ если <constant>MODE_OR</constant>, то достаточно изменения одного ведущего файла, чтобы кэш стал недействительным
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>ignore_missing_master_files</code></entry>
|
|
|
- <entry><code>boolean</code></entry>
|
|
|
- <entry><code>false</code></entry>
|
|
|
+ <entry><emphasis>ignore_missing_master_files</emphasis></entry>
|
|
|
+ <entry><type>Boolean</type></entry>
|
|
|
+ <entry><constant>FALSE</constant></entry>
|
|
|
<entry>
|
|
|
- если равен <code>true</code>, то отсутствующие
|
|
|
+ если равен <constant>TRUE</constant>, то отсутствующие
|
|
|
ведущие файлы игнорируются, иначе бросается
|
|
|
исключение
|
|
|
</entry>
|
|
|
@@ -599,7 +599,7 @@ $result = $cache->foobar2('1', '2');
|
|
|
Этот фронтэнд используется так же, как и
|
|
|
<classname>Zend_Cache_Core</classname>. Специальные примеры не нужны,
|
|
|
единственное, что надо сделать — это указать
|
|
|
- <code>masterFile</code> при использовании фабрики.
|
|
|
+ <emphasis>masterFile</emphasis> при использовании фабрики.
|
|
|
</para>
|
|
|
</sect3>
|
|
|
</sect2>
|
|
|
@@ -622,7 +622,7 @@ $result = $cache->foobar2('1', '2');
|
|
|
<varname>$_POST</varname>, <varname>$_SESSION</varname>,
|
|
|
<varname>$_COOKIE</varname>, <varname>$_FILES</varname>.
|
|
|
Кроме этого, вы используете только один метод для вызова
|
|
|
- (<code>start()</code>), потому что <code>end()</code> вызывается
|
|
|
+ (<methodname>start()</methodname>), потому что <methodname>end()</methodname> вызывается
|
|
|
автоматически, когда страница заканчивается.
|
|
|
</para>
|
|
|
<para>
|
|
|
@@ -647,66 +647,66 @@ $result = $cache->foobar2('1', '2');
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<row>
|
|
|
- <entry><code>http_conditional</code></entry>
|
|
|
- <entry><code>boolean</code></entry>
|
|
|
- <entry><code>false</code></entry>
|
|
|
+ <entry><emphasis>http_conditional</emphasis></entry>
|
|
|
+ <entry><type>Boolean</type></entry>
|
|
|
+ <entry><constant>FALSE</constant></entry>
|
|
|
<entry>
|
|
|
Использовать условную систему HTTP (не
|
|
|
реализовано на данный момент)
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>debug_header</code></entry>
|
|
|
- <entry><code>boolean</code></entry>
|
|
|
- <entry><code>false</code></entry>
|
|
|
+ <entry><emphasis>debug_header</emphasis></entry>
|
|
|
+ <entry><type>Boolean</type></entry>
|
|
|
+ <entry><constant>FALSE</constant></entry>
|
|
|
<entry>
|
|
|
- Если установлен в <code>true</code>, то
|
|
|
+ Если установлен в <constant>TRUE</constant>, то
|
|
|
отладочный текст вставляется перед каждой
|
|
|
кэшируемой страницей.
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>default_options</code></entry>
|
|
|
- <entry><code>array</code></entry>
|
|
|
- <entry><code>array(...смотрите далее...)</code></entry>
|
|
|
+ <entry><emphasis>default_options</emphasis></entry>
|
|
|
+ <entry><type>Array</type></entry>
|
|
|
+ <entry><methodname>array(...смотрите далее...)</methodname></entry>
|
|
|
<entry>
|
|
|
Ассоциативный массив опций, включаемых по
|
|
|
умолчанию:
|
|
|
<itemizedlist>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>boolean, true</code> по
|
|
|
- умолчанию) <code>cache</code>:
|
|
|
- если <code>true</code>, то
|
|
|
+ (<emphasis>boolean, true</emphasis> по
|
|
|
+ умолчанию) <emphasis>cache</emphasis>:
|
|
|
+ если <constant>TRUE</constant>, то
|
|
|
кэширование включено
|
|
|
</para>
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>boolean, false</code> по
|
|
|
+ (<emphasis>boolean, false</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>cache_with_get_variables</code>:
|
|
|
- если <code>true</code>, кэширование
|
|
|
+ <emphasis>cache_with_get_variables</emphasis>:
|
|
|
+ если <constant>TRUE</constant>, кэширование
|
|
|
включено, даже если в массиве
|
|
|
<varname>$_GET</varname> есть переменные
|
|
|
</para>
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>boolean, false</code> по
|
|
|
+ (<emphasis>boolean, false</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>cache_with_post_variables</code>:
|
|
|
- если <code>true</code>, кэширование
|
|
|
+ <emphasis>cache_with_post_variables</emphasis>:
|
|
|
+ если <constant>TRUE</constant>, кэширование
|
|
|
включено, даже если в массиве
|
|
|
<varname>$_POST</varname> есть переменные
|
|
|
</para>
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>boolean, false</code> по
|
|
|
+ (<emphasis>boolean, false</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>cache_with_session_variables</code>:
|
|
|
- если <code>true</code>, кэширование
|
|
|
+ <emphasis>cache_with_session_variables</emphasis>:
|
|
|
+ если <constant>TRUE</constant>, кэширование
|
|
|
включено, даже если в массиве
|
|
|
<varname>$_SESSION</varname> есть
|
|
|
переменные
|
|
|
@@ -714,20 +714,20 @@ $result = $cache->foobar2('1', '2');
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>boolean, false</code> по
|
|
|
+ (<emphasis>boolean, false</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>cache_with_files_variables</code>:
|
|
|
- если <code>true</code>, кэширование
|
|
|
+ <emphasis>cache_with_files_variables</emphasis>:
|
|
|
+ если <constant>TRUE</constant>, кэширование
|
|
|
включено, даже если в массиве
|
|
|
<varname>$_FILES</varname> есть переменные
|
|
|
</para>
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>boolean, false</code> по
|
|
|
+ (<emphasis>boolean, false</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>cache_with_cookie_variables</code>:
|
|
|
- если <code>true</code>, кэширование
|
|
|
+ <emphasis>cache_with_cookie_variables</emphasis>:
|
|
|
+ если <constant>TRUE</constant>, кэширование
|
|
|
включено, даже если в массиве
|
|
|
<varname>$_COOKIE</varname> есть
|
|
|
переменные
|
|
|
@@ -735,10 +735,10 @@ $result = $cache->foobar2('1', '2');
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>boolean, true</code> по
|
|
|
+ (<emphasis>boolean, true</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>make_id_with_get_variables</code>:
|
|
|
- если <code>true</code>, то
|
|
|
+ <emphasis>make_id_with_get_variables</emphasis>:
|
|
|
+ если <constant>TRUE</constant>, то
|
|
|
идентификатор кэша будет зависеть
|
|
|
от содержимого массива
|
|
|
<varname>$_GET</varname>
|
|
|
@@ -746,10 +746,10 @@ $result = $cache->foobar2('1', '2');
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>boolean, true</code> по
|
|
|
+ (<emphasis>boolean, true</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>make_id_with_post_variables</code>:
|
|
|
- если <code>true</code>, то
|
|
|
+ <emphasis>make_id_with_post_variables</emphasis>:
|
|
|
+ если <constant>TRUE</constant>, то
|
|
|
идентификатор кэша будет зависеть
|
|
|
от содержимого массива
|
|
|
<varname>$_POST</varname>
|
|
|
@@ -757,10 +757,10 @@ $result = $cache->foobar2('1', '2');
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>boolean, true</code> по
|
|
|
+ (<emphasis>boolean, true</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>make_id_with_session_variables</code>:
|
|
|
- если <code>true</code>, то
|
|
|
+ <emphasis>make_id_with_session_variables</emphasis>:
|
|
|
+ если <constant>TRUE</constant>, то
|
|
|
идентификатор кэша будет зависеть
|
|
|
от содержимого массива
|
|
|
<varname>$_SESSION</varname>
|
|
|
@@ -768,10 +768,10 @@ $result = $cache->foobar2('1', '2');
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>boolean, true</code> по
|
|
|
+ (<emphasis>boolean, true</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>make_id_with_files_variables</code>:
|
|
|
- если <code>true</code>, то
|
|
|
+ <emphasis>make_id_with_files_variables</emphasis>:
|
|
|
+ если <constant>TRUE</constant>, то
|
|
|
идентификатор кэша будет зависеть от
|
|
|
содержимого массива
|
|
|
<varname>$_FILES</varname>
|
|
|
@@ -779,10 +779,10 @@ $result = $cache->foobar2('1', '2');
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>boolean, true</code> по
|
|
|
+ (<emphasis>boolean, true</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>make_id_with_cookie_variables</code>:
|
|
|
- если <code>true</code>, то
|
|
|
+ <emphasis>make_id_with_cookie_variables</emphasis>:
|
|
|
+ если <constant>TRUE</constant>, то
|
|
|
идентификатор кэша будет зависеть от
|
|
|
содержимого массива
|
|
|
<varname>$_COOKIE</varname>
|
|
|
@@ -790,10 +790,10 @@ $result = $cache->foobar2('1', '2');
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>int, false</code> по
|
|
|
+ (<emphasis>int, false</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>specific_lifetime</code>:
|
|
|
- если не <code>false</code>,
|
|
|
+ <emphasis>specific_lifetime</emphasis>:
|
|
|
+ если не <constant>FALSE</constant>,
|
|
|
то значение этой опции,
|
|
|
обозначающей время жизни кэша,
|
|
|
будет использоваться для выбранного
|
|
|
@@ -802,17 +802,17 @@ $result = $cache->foobar2('1', '2');
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>array, array()</code> по
|
|
|
+ (<emphasis>array, array()</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>tags</code>:
|
|
|
+ <emphasis>tags</emphasis>:
|
|
|
теги для записи в кэше
|
|
|
</para>
|
|
|
</listitem>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- (<code>int, null</code> по
|
|
|
+ (<emphasis>int, null</emphasis> по
|
|
|
умолчанию)
|
|
|
- <code>priority</code>:
|
|
|
+ <emphasis>priority</emphasis>:
|
|
|
приоритет. Действует только
|
|
|
если выбранный бэкэнд поддерживает
|
|
|
приоритеты.
|
|
|
@@ -822,9 +822,9 @@ $result = $cache->foobar2('1', '2');
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>regexps</code></entry>
|
|
|
- <entry><code>array</code></entry>
|
|
|
- <entry><code>array()</code></entry>
|
|
|
+ <entry><emphasis>regexps</emphasis></entry>
|
|
|
+ <entry><type>Array</type></entry>
|
|
|
+ <entry><methodname>array()</methodname></entry>
|
|
|
<entry>
|
|
|
Ассоциативный массив для установки опций
|
|
|
только для некоторых REQUEST_URI. Ключами
|
|
|
@@ -841,9 +841,9 @@ $result = $cache->foobar2('1', '2');
|
|
|
</entry>
|
|
|
</row>
|
|
|
<row>
|
|
|
- <entry><code>memorize_headers</code></entry>
|
|
|
- <entry><code>array</code></entry>
|
|
|
- <entry><code>array()</code></entry>
|
|
|
+ <entry><emphasis>memorize_headers</emphasis></entry>
|
|
|
+ <entry><type>Array</type></entry>
|
|
|
+ <entry><methodname>array()</methodname></entry>
|
|
|
<entry>
|
|
|
Массив строк с именами HTTP-заголовков.
|
|
|
Перечисленные заголовки будут сохранены в
|
|
|
@@ -931,7 +931,7 @@ $cache->start();
|
|
|
В некоторых случаях может потребоваться отменить текущий
|
|
|
процесс кэширования - например, если используется код
|
|
|
возврата, отличный от HTTP/200. Поэтому мы добавили метод
|
|
|
- <code>cancel()</code>:
|
|
|
+ <methodname>cancel()</methodname>:
|
|
|
</para>
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
// [...]
|