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

clear_cache()

clear_cache() -- membersihkan cache untuk template tertentu

Deskripsi

void clear_cache ( string template [, string cache_id [, string compile_id [, int expire_time]]])

  • Jika anda mempunyai multipel cache untuk sebuah template, anda bisa membersihkan cache tertentu dengan menyertakan cache_id sebagai parameter kedua.

  • Anda juga bisa mengirimkan $compile_id sebagai parameter ketiga. Anda dapat mengelompokan template bersama agar bisas dihapus sebagai sebuah grup, lihat seksi cache untuk informasi lebih jauh.

  • Sebagai parameter opsional keempat, anda dapat menyertakan waktu minimum dalam detik cache file seharusnya sebelum dibersihkan.

Teladan 13-1. clear_cache()

clear_cache(\'index.tpl\'); // bersihkan cache untuk id cache tertentu dalam multipel-cache template $smarty->clear_cache(\'index.tpl\', \'MY_CACHE_ID\'); ?>'); ?>

Lihat juga clear_all_cache() dan seksi 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 6 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