mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-05 23:01:37 +01:00
44 lines
1.7 KiB
XML
44 lines
1.7 KiB
XML
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|||
|
|
<!-- $Revision$ -->
|
|||
|
|
<sect1 id="variable.caching">
|
|||
|
|
<title>$caching</title>
|
|||
|
|
<para>
|
|||
|
|
Isto diz <20> Smarty se h<> ou n<>o sa<73>da de cache para o template.
|
|||
|
|
Por padr<64>o isso est<73> setado para 0, ou desabilitado. Se seu template gerar
|
|||
|
|
conte<74>do redundante, <20> necess<73>rio ligar o caching. Isso
|
|||
|
|
ir<69> resultar num ganho significativo de performance. Voc<6F> pode tamb<6D>m ter m<>ltiplos
|
|||
|
|
caches para o mesmo template. Um valor de 1 ou 2 caching habilitados. 1 diz
|
|||
|
|
<20> Smarty para usar a vari<72>vel atual $cache_lifetime para determinar se o
|
|||
|
|
cache expirou. Um valor 2 diz <20> Smarty para usar o valor cache_lifetime
|
|||
|
|
ent<6E>o para quando o cache foi gerado. Desta maneira voc<6F> pode setar o
|
|||
|
|
cache_lifetime imediatamente antes de buscar o template para ter controle
|
|||
|
|
sobre quando este cache em particular expira. Veja tamb<6D>m <link
|
|||
|
|
linkend="api.is.cached">is_cached</link>.
|
|||
|
|
</para>
|
|||
|
|
<para>
|
|||
|
|
Se $compile_check est<73> habilitado, o conte<74>do do cache ir<69> ser regerado se
|
|||
|
|
algum dos templates ou arquivos de configura<72><61>o que s<>o parte deste cache estiverem
|
|||
|
|
alterados. Se $force_compile est<73> habilitado, o conte<74>do do cache ir<69> sempre ser
|
|||
|
|
regerado.
|
|||
|
|
</para>
|
|||
|
|
</sect1>
|
|||
|
|
<!-- Keep this comment at the end of the file
|
|||
|
|
Local variables:
|
|||
|
|
mode: sgml
|
|||
|
|
sgml-omittag:t
|
|||
|
|
sgml-shorttag:t
|
|||
|
|
sgml-minimize-attributes:nil
|
|||
|
|
sgml-always-quote-attributes:t
|
|||
|
|
sgml-indent-step:1
|
|||
|
|
sgml-indent-data:t
|
|||
|
|
indent-tabs-mode:nil
|
|||
|
|
sgml-parent-document:nil
|
|||
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|||
|
|
sgml-exposed-tags:nil
|
|||
|
|
sgml-local-catalogs:nil
|
|||
|
|
sgml-local-ecat-files:nil
|
|||
|
|
End:
|
|||
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|||
|
|
vim: et tw=78 syn=sgml
|
|||
|
|
vi: ts=1 sw=1
|
|||
|
|
-->
|