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

$use_sub_dirs

Smarty akan membuat subdirektori di bawah template terkompilasi dan direktori cache jika $use_sub_dirs disetel ke TRUE, standarnya FALSE. Dalam sebuah lingkungan di mana ada potensi sepulu dari ribuan file dibuat, ini dapat membantu kecepatan sistem file. Dengan kata lain, beberapa lingkungan tidak membolehkan proses PHP membuat direktori, maka ini harus dimatikan yang sudah jadi standarnya.

Sub direktori lebih efisien, maka gunakan jika anda bisa. Secara teori anda memperoleh performansi lebih baik pada sistem file dengan 10 direktori masing-masing memiliki 100 file, daripada dengan 1 direktori yang memiliki 1000 file. Ini tentunya kasus dengan Solaris 7 (UFS)... dengan sistem file lebih baru seperti ext3 dan terutama reiserfs, perbedaannya hampir tidak ada.

  • $use_sub_dirs=true tidak bekerja dengan safe_mode=On, itulah mengapa dapat diputar dan mengapa standarnya dimatikan.

  • $use_sub_dirs=true pada Windows bisa menimbulkan masalah.

  • Safe_mode akan menjadi usang dalam PHP6.

Lihat juga $compile_id, $cache_dir, dan $compile_dir.

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 5 plus 20? (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