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

$caching

Ini memberitahu Smarty apakah melakukan cache output template atau tidak ke $cache_dir. Standarnya ini disetel 0 yakni dimatikan. Jika template anda membuat konten berlebihan, disarankan untuk menghidupkan $caching, karena ini akan menghasilkan keuntungan performansi signifikan.

Anda juga memiliki multipel cache untuk template yang sama.

  • Nilai 1 atau 2 menghidupkan cache.

  • Nilai 1 memberitahu Smarty untuk menggunakan variabel $cache_lifetime saat ini guna menetapkan apakah cache sudah berakhir.

  • Nilai 2 memberitahu Smarty untuk menggunakan nilai $cache_lifetime saat waktu cache dibuat. Dengan cara ini anda bisa menyetel $cache_lifetime cukup sebelum fetching template untuk memiliki kontrol granular melewati berakhirnya cache tertentu. Lihat juga is_cached().

  • Jika $compile_check dihidupkan, konten yang di-cache akan dibuat ulang bila setiap template atau file config yang adalah bagian dari cache ini diubah.

  • Jika $force_compile dihidupkan, konten yang di-cache akan selalu dibuat ulang.

Lihat juga $cache_dir, $cache_lifetime, $cache_handler_func, $cache_modified_check, is_cached() 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 15? (Are you human?)

Sponsors [info]

Cheap Website Hosting @hostdone.com
Cheap Hosting @HostsVault
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