Get Smarty

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:

Check reviews of PHP Web Hosting, compatible with Smarty Templates

Name

clear_cache() — Esto limpia el cache de un template especifico

Descripción

void clear_cache(string template,
                 string cache_id,
                 string compile_id,
                 int expire_time);

Si usted tiene multiples caches en este archivo, usted puede limpiar un cache especifico proporcionando el cache_id como segundo parámetro Usted también puede pasar el $compile_id como un tercer parámetro. Usted puede "agrupar" templates conjuntamente de esta manera estos pueden ser removidos como un grupo. Vea el caching section para mayor información. Como un cuarto parámetro opcional, usted puede proporcionar un periodo minimo en segundos que el archivo de cache debe tener antes de ser anulado.

Example 13.8. clear_cache()


<?php
// clear the cache for a template
$smarty->clear_cache('index.tpl');

// clear the cache for a particular cache id in an multiple-cache template
$smarty->clear_cache('index.tpl', 'CACHEID');
?>

   

Ver también clear_all_cache() y caching.

Comments
No comments for this page.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Author:
Email: (not shown)
What is 17 plus 10? (Are you human?)

Sponsors [info]

Cheap Website Hosting @hostdone.com
email marketing @ActiveCampaign
broadband deals @BroadbandGenie
Best UK Web Hosting @webhost.uk.net
Reliable UK and US Web Hosting @rshosting.com
Cheap US and UK Web Hosting @infrenion.com
I.T Certification Exams @pass-guaranteed.com
Certification Practice Tests @firsttrycertify.com
Certification Practice Exam Questions @ace-it-certifications.com
Broadband Speed Test @broadbandspeed.co.uk
bulk email software @americaint.com
ASP.NET hosting @aspnethosting.co.uk