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

Isto diz à Smarty se há ou não saída de cache para o template. Por padrão isso está setado para 0, ou desabilitado. Se seu template gerar conteúdo redundante, é necessário ligar o caching. Isso irá resultar num ganho significativo de performance. Você pode também ter múltiplos caches para o mesmo template. Um valor de 1 ou 2 caching habilitados. 1 diz à Smarty para usar a variável atual $cache_lifetime para determinar se o cache expirou. Um valor 2 diz à Smarty para usar o valor cache_lifetime então para quando o cache foi gerado. Desta maneira você pode setar o cache_lifetime imediatamente antes de buscar o template para ter controle sobre quando este cache em particular expira. Veja também is_cached.

Se $compile_check está habilitado, o conteúdo do cache irá ser regerado se algum dos templates ou arquivos de configuração que são parte deste cache estiverem alterados. Se $force_compile está habilitado, o conteúdo do cache irá sempre ser regerado.

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 6? (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