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

Questa variabile dice a Smarty se mettere in cache oppure no l'output dei template. Per default è impostata a 0, o disabilitata. Se i vostri template generano contenuto ridondante, è consigliabile attivare il caching. Ne deriveranno significativi guadagni di prestazioni. Potete anche avere più di una cache per lo stesso template. I valori 1 e 2 abilitano il caching. 1 dice a Smarty di usare l'attuale variabile $cache_lifetime per determinare se la cache è scaduta. Il valore 2 dice a Smarty di usare il valore di cache_lifetime del momento in cui la cache è stata generata. In questo modo potete impostare il cache_lifeteime subito prima di caricare il template per avere un controllo granulare su quando quella particolare cache scadrà. Consultate anche is_cached.

Se $compile_check è abilitato, il contenuto in cache verrà rigenerato quando i file del template o di configurazione che fanno parte di questa cache vengono modificati. Se è abilitato $force_compile, il contenuto in cache verrà rigenerato ogni volta.

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 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