mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-22 17:01:36 +02:00
55 lines
2.0 KiB
XML
55 lines
2.0 KiB
XML
![]() |
<?xml version="1.0" encoding="iso-8859-1"?>
|
|||
|
<!-- $Revision$ -->
|
|||
|
<sect1 id="variable.cache.lifetime">
|
|||
|
<title>$cache_lifetime</title>
|
|||
|
<para>
|
|||
|
Este es la duraci<63>n del tiempo en segundos que un cache de template
|
|||
|
es valido. Una vez que este tiempo est<73> expirado, el cache sera
|
|||
|
regenerado. $caching debe ser asignado a "true" para $cache_lifetime
|
|||
|
hasta tener alg<6C>n prop<6F>sito. Un valor de -1 forza el cache a nunca
|
|||
|
expirar. Un valor de 0 forzara a que el cache sea siempre regenerado
|
|||
|
(bueno solo para probar, el m<>todo mas eficiente para desabilitar cache
|
|||
|
es asignar <link linkend="variable.caching">$caching</link> = false.)
|
|||
|
</para>
|
|||
|
<para>
|
|||
|
Si <link linkend="variable.force.compile">$force_compile</link>
|
|||
|
est<73> habilitado, los archivos de cache ser<65>n regenerados todo el
|
|||
|
tiempo, efectivamente desabilitando caching. Usted puede limpiar
|
|||
|
todos los archivos de cache con la funci<63>n
|
|||
|
<link linkend="api.clear.all.cache">clear_all_cache()</link>,
|
|||
|
o archivos individuales de cache (o grupos) con la funci<63>n
|
|||
|
<link linkend="api.clear.cache">clear_cache()</link>.
|
|||
|
</para>
|
|||
|
<note>
|
|||
|
<title>Nota T<>cnica</title>
|
|||
|
<para>
|
|||
|
Si usted quisiera dar a ciertos templates su propio tiempo de
|
|||
|
vida de cache, usted puede hacer esto asignando
|
|||
|
<link linkend="variable.caching">$caching</link> = 2, entonces
|
|||
|
determina $cache_lifetime a un <20>nico valor justo antes de llamar
|
|||
|
display() o fetch().
|
|||
|
</para>
|
|||
|
</note>
|
|||
|
</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
|
|||
|
-->
|