Files
smarty/docs/es/programmers/api-variables/variable-caching.xml
2005-11-08 23:37:29 +00:00

62 lines
2.5 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="variable.caching">
<title>$caching</title>
<para>
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
<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 <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én <link linkend="api.is.cached">is_cached()</link>.
</para>
<para>
Si <link linkend="variable.compile.check">$compile_check</link> está habilitado,
el contenido del cache se regenerara si alguno de los dos templates o archivos
de configuración que son parte de este cache estuviera modificado.
Si <link linkend="variable.force.compile">$force_compile</link> está habilitado,
el contenido del cache siempre sera regenerado.
</para>
<para>
Ver Tambié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:
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
-->