Get Smarty

Donate

Paypal

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Advertisement

$caching

Este informa al Smarty si hay o no salida de cache para el template en el $cache_dir. Por default tiene asignado 0, o desabilitado. Si su template genera contenido redundante, es necesario ligar el $caching. Esto tendra un benefico significativo en el rendimiento. Usted puede tener multiples caches para el mismo template. Un valor de 1 o 2 caching habilitados. 1 anuncia a Smarty para usar la variable actual $cache_lifetime hasta determinar si el cache expiro. Un valor 2 anuncia a Smarty para usar el valor $cache_lifetime al tiempo en que le cache fue generado. De esta manera usted puede determinar el $cache_lifetime inmediatamente antes de buscar el template para tener el control cuando este cache en particular expira. Vea también is_cached().

Si $compile_check está habilitado, el contenido del cache se regenerara si alguno de los dos templates o archivos de configuración que son parte de este cache estuviera modificado. Si $force_compile está habilitado, el contenido del cache siempre sera regenerado.

Ver También $cache_dir, $cache_lifetime, $cache_handler_func, $cache_modified_check y Caching section.

Comments
No comments for this page.

Advertisement

Sponsors [info]

Sponsors