mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 21:31:48 +01:00
huge sync with english by the translator (Mario Ramirez)
thanks
This commit is contained in:
@@ -3,25 +3,41 @@
|
||||
<sect1 id="variable.caching">
|
||||
<title>$caching</title>
|
||||
<para>
|
||||
Este informa al Smarty si hay o no salida de cache para el template.
|
||||
Este informa al Smarty si hay o no salida de cache para el template
|
||||
en el <link linkend="variable.cache.dir">$cache_dir</link>.
|
||||
Por default tiene asignado 0, o desabilitado. Si su template genera
|
||||
contenido redundante, es necesario ligar el caching. Esto tendra un
|
||||
benefico significativo en el rendimiento. Usted puede tener multiples
|
||||
caches para el mismo template. Un valor de 1 o 2 caching habilitados.
|
||||
1 anuncia a Smarty para usar la variable actual $cache_lifetime hasta
|
||||
contenido redundante, es necesario ligar el $caching. Esto tendra un
|
||||
benefico significativo en el rendimiento. Usted puede tener
|
||||
<link linkend="caching.multiple.caches">multiples</link> caches para el mismo template.
|
||||
Un valor de 1 o 2 caching habilitados.
|
||||
1 anuncia a Smarty para usar la variable actual
|
||||
<link linkend="variable.cache.lifetime">$cache_lifetime</link> hasta
|
||||
determinar si el cache expiro. Un valor 2 anuncia a Smarty para usar
|
||||
el valor cache_lifetime al tiempo en que le cache fue generado.
|
||||
De esta manera usted puede determinar el cache_lifetime inmediatamente
|
||||
antes de buscar el template para tener el control cuando este cache en
|
||||
particular expira.
|
||||
Vea tambi<62>n <link linkend="api.is.cached">is_cached</link>.
|
||||
el valor <link linkend="variable.cache.lifetime">$cache_lifetime</link>
|
||||
al tiempo en que le cache fue generado.
|
||||
De esta manera usted puede determinar el <link
|
||||
linkend="variable.cache.lifetime">$cache_lifetime</link> inmediatamente
|
||||
antes de <link linkend="api.fetch">buscar</link> el template para tener
|
||||
el control cuando este cache en particular expira.
|
||||
Vea tambi<62>n <link linkend="api.is.cached">is_cached()</link>.
|
||||
</para>
|
||||
<para>
|
||||
Si $compile_check est<73> habilitado, el contenido del cache se regenerara
|
||||
si alguno de los dos templates o archivos de configuraci<63>n que son parte
|
||||
de este cache estuviera modificado. Si $force_compile est<73> habilitado,
|
||||
el contenido del cache siempre sera regenerado.
|
||||
Si <link linkend="variable.compile.check">$compile_check</link> est<73> habilitado,
|
||||
el contenido del cache se regenerara si alguno de los dos templates o archivos
|
||||
de configuraci<63>n que son parte de este cache estuviera modificado.
|
||||
Si <link linkend="variable.force.compile">$force_compile</link> est<73> habilitado,
|
||||
el contenido del cache siempre sera regenerado.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Ver Tambi<62>n
|
||||
<link linkend="variable.cache.dir">$cache_dir</link>,
|
||||
<link linkend="variable.cache.lifetime">$cache_lifetime</link>,
|
||||
<link linkend="variable.cache.handler.func">$cache_handler_func</link>,
|
||||
<link linkend="variable.cache.modified.check">$cache_modified_check</link>
|
||||
y <link linkend="caching">Caching section</link>.
|
||||
</para>
|
||||
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
Reference in New Issue
Block a user