mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-10-31 12:21:36 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			56 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			56 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ón del tiempo en segundos que un cache de template 
 | |
|      es valido. Una vez que este tiempo está expirado, el cache sera 
 | |
|      regenerado. $caching debe ser asignado a "true" para $cache_lifetime 
 | |
|      hasta tener algún propó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á habilitado, los archivos de cache serán regenerados todo el 
 | |
|      tiempo, efectivamente desabilitando caching. Usted puede limpiar 
 | |
|      todos los archivos de cache con la función 
 | |
|      <link linkend="api.clear.all.cache">clear_all_cache()</link>,
 | |
|      o archivos individuales de cache (o grupos) con la funció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 único valor justo antes de llamar 
 | |
|        <link linkend="api.display">display()</link>
 | |
|        o <link linkend="api.fetch">fetch()</link>.
 | |
|      </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
 | |
| -->
 |