| 
									
										
										
										
											2004-10-07 18:50:52 +00:00
										 |  |  |  | <?xml version="1.0" encoding="iso-8859-1"?> | 
					
						
							|  |  |  |  | <!-- $Revision$ --> | 
					
						
							|  |  |  |  |      <sect1 id="variable.caching"> | 
					
						
							|  |  |  |  |       <title>$caching</title> | 
					
						
							|  |  |  |  |       <para> | 
					
						
							| 
									
										
										
										
											2005-11-08 23:37:29 +00:00
										 |  |  |  |     Este informa al Smarty si hay o no salida de cache para el template | 
					
						
							|  |  |  |  |     en el <link linkend="variable.cache.dir">$cache_dir</link>. | 
					
						
							| 
									
										
										
										
											2004-10-07 18:50:52 +00:00
										 |  |  |  |     Por default tiene asignado 0, o desabilitado. Si su template genera | 
					
						
							| 
									
										
										
										
											2005-11-08 23:37:29 +00:00
										 |  |  |  |     contenido redundante, es necesario ligar el $caching. Esto tendra un  | 
					
						
							|  |  |  |  |     benefico significativo en el rendimiento. Usted puede tener  | 
					
						
							|  |  |  |  |     <link linkend="caching.multiple.caches">multiples</link> caches para el mismo template.  | 
					
						
							|  |  |  |  |     Un valor de 1 o 2 caching habilitados. | 
					
						
							|  |  |  |  |     1 anuncia a Smarty para usar la variable actual  | 
					
						
							|  |  |  |  |     <link linkend="variable.cache.lifetime">$cache_lifetime</link> hasta  | 
					
						
							| 
									
										
										
										
											2004-10-07 18:50:52 +00:00
										 |  |  |  |     determinar si el cache expiro. Un valor 2 anuncia a Smarty para usar  | 
					
						
							| 
									
										
										
										
											2005-11-08 23:37:29 +00:00
										 |  |  |  |     el valor <link linkend="variable.cache.lifetime">$cache_lifetime</link>  | 
					
						
							|  |  |  |  |     al tiempo en que le cache fue generado. | 
					
						
							|  |  |  |  |     De esta manera usted puede determinar el <link | 
					
						
							|  |  |  |  |      linkend="variable.cache.lifetime">$cache_lifetime</link> inmediatamente  | 
					
						
							|  |  |  |  |     antes de  <link linkend="api.fetch">buscar</link> el template para tener  | 
					
						
							|  |  |  |  |     el control cuando este cache en particular expira.  | 
					
						
							|  |  |  |  |     Vea tambi<62>n <link linkend="api.is.cached">is_cached()</link>. | 
					
						
							| 
									
										
										
										
											2004-10-07 18:50:52 +00:00
										 |  |  |  |       </para> | 
					
						
							|  |  |  |  |       <para> | 
					
						
							| 
									
										
										
										
											2005-11-08 23:37:29 +00:00
										 |  |  |  |        Si <link linkend="variable.compile.check">$compile_check</link> est<73> habilitado,  | 
					
						
							|  |  |  |  |        el contenido del cache se regenerara si alguno de los dos templates o archivos  | 
					
						
							|  |  |  |  |        de configuraci<63>n que son parte de este cache estuviera modificado.  | 
					
						
							|  |  |  |  |        Si <link linkend="variable.force.compile">$force_compile</link> est<73> habilitado,  | 
					
						
							|  |  |  |  |        el contenido del cache siempre sera regenerado. | 
					
						
							| 
									
										
										
										
											2004-10-07 18:50:52 +00:00
										 |  |  |  |       </para> | 
					
						
							| 
									
										
										
										
											2005-11-08 23:37:29 +00:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | <para> | 
					
						
							|  |  |  |  |   Ver Tambi<62>n  | 
					
						
							|  |  |  |  |   <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> | 
					
						
							|  |  |  |  | y <link linkend="caching">Caching section</link>. | 
					
						
							|  |  |  |  | </para> | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-10-07 18:50:52 +00:00
										 |  |  |  | </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 | 
					
						
							|  |  |  |  | --> |