| 
									
										
										
										
											2004-04-13 11:47:32 +00:00
										 |  |  |  | <?xml version="1.0" encoding="iso-8859-1"?> | 
					
						
							|  |  |  |  | <!-- $Revision$ --> | 
					
						
							| 
									
										
										
										
											2004-05-23 15:50:53 +00:00
										 |  |  |  | <!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> | 
					
						
							|  |  |  |  | <sect1 id="variable.cache.lifetime"> | 
					
						
							|  |  |  |  |  <title>$cache_lifetime</title> | 
					
						
							|  |  |  |  |  <para> | 
					
						
							|  |  |  |  |   Il s'agit de la dur<75>e en secondes pendant laquelle un cache de template | 
					
						
							|  |  |  |  |   est valide. Une fois cette dur<75>e d<>pass<73>e, le cache est reg<65>n<EFBFBD>r<EFBFBD>. | 
					
						
							|  |  |  |  |   $caching doit <20>tre a "true" pour que $cache_lifetime ait une | 
					
						
							|  |  |  |  |   quelconque utilit<69>. Avec une valeur de -1, le cache n'expire jamais. | 
					
						
							|  |  |  |  |   Avec une valeur de 0, le cache est toujours reg<65>n<EFBFBD>r<EFBFBD> (utile | 
					
						
							|  |  |  |  |   a des fins de tests seulement. Une meilleure faton de d<>sactiver | 
					
						
							|  |  |  |  |   le cache est de mettre <link | 
					
						
							|  |  |  |  |   linkend="variable.caching">$caching</link> a "false"). | 
					
						
							|  |  |  |  |  </para> | 
					
						
							|  |  |  |  |  <para> | 
					
						
							|  |  |  |  |   Si <link linkend="variable.force.compile">$force_compile</link> est | 
					
						
							|  |  |  |  |   activ<69>, les fichiers du cache seront reg<65>n<EFBFBD>r<EFBFBD>s a chaque fois, | 
					
						
							|  |  |  |  |   d<>sactivant ainsi le cache. Vous pouvez effacer tous les fichiers du cache | 
					
						
							|  |  |  |  |   avec la function | 
					
						
							|  |  |  |  |   <link linkend="api.clear.all.cache">clear_all_cache()</link> | 
					
						
							|  |  |  |  |    ou de faton individuelle (ou group<75>e) | 
					
						
							|  |  |  |  |    avec la fonction <link | 
					
						
							|  |  |  |  |    linkend="api.clear.cache">clear_cache()</link>. | 
					
						
							|  |  |  |  |   </para> | 
					
						
							|  |  |  |  |   <note> | 
					
						
							|  |  |  |  |    <title>Note technique</title> | 
					
						
							|  |  |  |  |    <para> | 
					
						
							|  |  |  |  |     Si vous souhaitez donner a certains templates leur propre dur<75>e de vie | 
					
						
							|  |  |  |  |     en cache, vous pouvez le faire en r<>glant | 
					
						
							|  |  |  |  |     <link linkend="variable.caching">$caching</link> a 2, | 
					
						
							|  |  |  |  |      puis $cache_lifetime a une unique valeur juste avant d'appeler | 
					
						
							|  |  |  |  |      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 | 
					
						
							|  |  |  |  |   --> |