| 
									
										
										
										
											2004-04-13 11:47:32 +00:00
										 |  |  |  | <?xml version="1.0" encoding="iso-8859-1"?> | 
					
						
							|  |  |  |  | <!-- $Revision$ --> | 
					
						
							| 
									
										
										
										
											2005-12-05 21:37:01 +00:00
										 |  |  |  | <!-- EN-Revision: 1.3 Maintainer: didou Status: ready --> | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-05-23 15:50:53 +00:00
										 |  |  |  | <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 | 
					
						
							| 
									
										
										
										
											2004-12-26 21:12:45 +00:00
										 |  |  |  |   a des fins de tests seulement. Une meilleure fa<66>on de d<>sactiver | 
					
						
							| 
									
										
										
										
											2004-05-23 15:50:53 +00:00
										 |  |  |  |   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> | 
					
						
							| 
									
										
										
										
											2004-12-26 21:12:45 +00:00
										 |  |  |  |   ou de fa<66>on individuelle (ou group<75>e) avec la fonction <link | 
					
						
							| 
									
										
										
										
											2004-10-27 10:43:43 +00:00
										 |  |  |  |   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 | 
					
						
							| 
									
										
										
										
											2005-12-05 21:37:01 +00:00
										 |  |  |  |    <link linkend="api.display">display()</link> ou <link linkend="api.fetch">fetch()</link>. | 
					
						
							| 
									
										
										
										
											2004-05-23 15:50:53 +00:00
										 |  |  |  |   </para> | 
					
						
							| 
									
										
										
										
											2004-10-27 10:43:43 +00:00
										 |  |  |  |  </note> | 
					
						
							|  |  |  |  | </sect1> | 
					
						
							| 
									
										
										
										
											2005-12-05 21:37:01 +00:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-10-27 10:43:43 +00:00
										 |  |  |  | <!-- 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 | 
					
						
							| 
									
										
										
										
											2005-12-05 21:37:01 +00:00
										 |  |  |  | --> |