| 
									
										
										
										
											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.5 Maintainer: yannick Status: ready --> | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-05-23 15:50:53 +00:00
										 |  |  |  | <sect1 id="variable.caching"> | 
					
						
							|  |  |  |  |  <title>$caching</title> | 
					
						
							|  |  |  |  |  <para> | 
					
						
							| 
									
										
										
										
											2004-12-26 21:12:45 +00:00
										 |  |  |  |   Ce param<61>tre demande <20> Smarty de mettre ou non en cache la sortie des | 
					
						
							| 
									
										
										
										
											2004-05-23 15:50:53 +00:00
										 |  |  |  |   templates. | 
					
						
							| 
									
										
										
										
											2004-12-26 21:12:45 +00:00
										 |  |  |  |   Par d<>faut, ce r<>glage est <20> 0 (d<>sactiv<69>). Si vos templates | 
					
						
							| 
									
										
										
										
											2004-05-23 15:50:53 +00:00
										 |  |  |  |   g<>n<EFBFBD>rent du contenu redondant, il est conseill<6C> d'activer le | 
					
						
							| 
									
										
										
										
											2004-12-26 21:12:45 +00:00
										 |  |  |  |   cache. Cel<65> permettra un gain de performance cons<6E>quent. | 
					
						
							| 
									
										
										
										
											2005-12-05 21:37:01 +00:00
										 |  |  |  |   Vous pouvez aussi avoir de | 
					
						
							|  |  |  |  |   <link linkend="caching.multiple.caches">nombreux fichiers de cache</link> pour un m<>me template. | 
					
						
							| 
									
										
										
										
											2004-05-23 15:50:53 +00:00
										 |  |  |  |   Une valeur de 1 ou 2 active le cache. 1 indique a Smarty d'utiliser | 
					
						
							| 
									
										
										
										
											2005-12-05 21:37:01 +00:00
										 |  |  |  |   la variable <link linkend="variable.cache.lifetime">$cache_lifetime</link> | 
					
						
							|  |  |  |  |   pour d<>terminer si le fichier de cache a expir<69>. | 
					
						
							|  |  |  |  |   Une valeur de 2 indique <20> Smarty d'utiliser la valeur | 
					
						
							|  |  |  |  |   <link linkend="variable.cache.lifetime">$cache_lifetime</link> sp<73>cifi<66>e <20> la | 
					
						
							|  |  |  |  |   g<>n<EFBFBD>ration du cache. Ainsi vous pouvez r<>gler | 
					
						
							|  |  |  |  |   la dur<75>e de vie d'un fichier de cache avant de <link linkend="api.fetch">r<EFBFBD>cup<EFBFBD>rer</link> | 
					
						
							|  |  |  |  |   le template pour avoir un certain contr<74>le quand ce fichier en particulier expire. Voir | 
					
						
							|  |  |  |  |   aussi <link linkend="api.is.cached">is_cached()</link>. | 
					
						
							| 
									
										
										
										
											2004-05-23 15:50:53 +00:00
										 |  |  |  |  </para> | 
					
						
							|  |  |  |  |  <para> | 
					
						
							| 
									
										
										
										
											2005-12-05 21:37:01 +00:00
										 |  |  |  |   Si <link linkend="variable.compile.check">$compile_check</link> est actif, le contenu | 
					
						
							|  |  |  |  |   du cache sera reg<65>n<EFBFBD>r<EFBFBD> si un des templates ou un des fichiers de configuration qui fait partie | 
					
						
							|  |  |  |  |   de ce fichier de cache a <20>t<EFBFBD> modifi<66>. Si <link linkend="variable.force.compile">$force_compile</link> | 
					
						
							|  |  |  |  |   est actif, le contenu du cache est toujours reg<65>n<EFBFBD>r<EFBFBD>. | 
					
						
							|  |  |  |  |  </para> | 
					
						
							|  |  |  |  |  <para> | 
					
						
							|  |  |  |  |   Voir aussi | 
					
						
							|  |  |  |  |   <link linkend="variable.cache.dir">$cache_dir</link>, | 
					
						
							|  |  |  |  |   <link linkend="variable.cache.lifetime">$cache_lifetime</link>, | 
					
						
							|  |  |  |  |   <link linkend="variable.cache.handler.func">$cache_handler_func</link>, | 
					
						
							|  |  |  |  |   <link linkend="variable.cache.modified.check">$cache_modified_check</link> et | 
					
						
							|  |  |  |  |   la <link linkend="caching">section sur le cache</link>. | 
					
						
							| 
									
										
										
										
											2004-05-23 15:50:53 +00:00
										 |  |  |  |  </para> | 
					
						
							| 
									
										
										
										
											2004-04-13 11:47:32 +00:00
										 |  |  |  | </sect1> | 
					
						
							| 
									
										
										
										
											2005-12-05 21:37:01 +00:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-04-13 11:47:32 +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
										 |  |  |  | --> |