mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-11-04 14:21:36 +01:00 
			
		
		
		
	
		
			
	
	
		
			51 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
		
		
			
		
	
	
			51 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| 
								 | 
							
								<?xml version="1.0" encoding="iso-8859-1"?>
							 | 
						|||
| 
								 | 
							
								<!-- $Revision$ -->
							 | 
						|||
| 
								 | 
							
								     <sect1 id="variable.cache.lifetime">
							 | 
						|||
| 
								 | 
							
								      <title>$cache_lifetime</title>
							 | 
						|||
| 
								 | 
							
								      <para>
							 | 
						|||
| 
								 | 
							
									   Isso <20> o comprimento de tempo em segundos que um cache de template <20> v<>lido.
							 | 
						|||
| 
								 | 
							
									   Uma vez que este tempo est<73> expirado, o cache ir<69> ser regerado. $caching deve
							 | 
						|||
| 
								 | 
							
									   ser configurado para "true" para $cache_lifetime para ter algum prop<6F>sito. Um valor de -1
							 | 
						|||
| 
								 | 
							
									   ir<69> for<6F>ar o cache a nunca expirar. Um valor de 0 ir<69> fazer com que o cache seja sempre regerado 
							 | 
						|||
| 
								 | 
							
									   (bom somente para testes, o m<>todo mais eficiente de desabilitar caching <20> set<65>-lo para
							 | 
						|||
| 
								 | 
							
									   <link
							 | 
						|||
| 
								 | 
							
									   linkend="variable.caching">$caching</link> = false.)
							 | 
						|||
| 
								 | 
							
								      </para>
							 | 
						|||
| 
								 | 
							
									  <para>
							 | 
						|||
| 
								 | 
							
									   Se <link linkend="variable.force.compile">$force_compile</link> est<73>
							 | 
						|||
| 
								 | 
							
									   habilitado, os arquivos de cache ser<65>o regerados todo o tempo, eficazmente
							 | 
						|||
| 
								 | 
							
									   desativando caching. Voc<6F> pode limpar todos os arquivos de cache com a fun<75><6E>o <link
							 | 
						|||
| 
								 | 
							
									   linkend="api.clear.all.cache">clear_all_cache()</link>, ou
							 | 
						|||
| 
								 | 
							
									   arquivos individuais de cache (ou grupos) com a fun<75><6E>o <link
							 | 
						|||
| 
								 | 
							
									   linkend="api.clear.cache">clear_cache()</link>.
							 | 
						|||
| 
								 | 
							
									  </para>
							 | 
						|||
| 
								 | 
							
									  <note>
							 | 
						|||
| 
								 | 
							
									  <title>Notas T<>cnicas</title>
							 | 
						|||
| 
								 | 
							
									  <para>
							 | 
						|||
| 
								 | 
							
									  Se voc<6F> quiser dar para certos templates seu pr<70>prio tempo de vida de um cache, 
							 | 
						|||
| 
								 | 
							
									  voc<6F> poderia fazer isso configurando <link linkend="variable.caching">$caching</link> = 2,
							 | 
						|||
| 
								 | 
							
									  ent<6E>o configure $cache_lifetime para um <20>nico valor somente antes de chamar display()
							 | 
						|||
| 
								 | 
							
									  ou 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
							 | 
						|||
| 
								 | 
							
								-->
							 |