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

$cache_lifetime

E' la durata in secondi della validità di un file di cache. Una volta che questo tempo è scaduto, la cache verrà rigenerata. $caching deve essere impostato a "true" perché $cache_lifetime abbia significato. Il valore -1 forza la cache a non scadere mai. Il valore 0 farà sì che la cache venga sempre rigenerata (è utile solo in fase di test, per disabilitare il caching un metodo più efficiente è impostare $caching a false.)

Se $force_compile è abilitato, i file della cache verranno rigenerati ogni volta, disabilitando in effetti il caching. Potete eliminare tutti i file della cache con la funzione clear_all_cache(), oppure singoli file (o gruppi di file) con la funzione clear_cache().

Nota tecnica

Se volete dare a certi template un particolare tempo di vita della cache, potete farlo impostando $caching = 2, quindi dando il valore che vi interessa a $cache_lifetime subito prima di chiamare display() o fetch().

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 12 plus 4? (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