2004-04-13 11:47:32 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
<!-- $Revision$ -->
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
|
|
|
|
<sect1 id="api.clear.cache">
|
|
|
|
|
<title>clear_cache</title>
|
|
|
|
|
<methodsynopsis>
|
|
|
|
|
<type>void</type><methodname>clear_cache</methodname>
|
|
|
|
|
<methodparam choice="opt"><type>string</type><parameter>template</parameter></methodparam>
|
|
|
|
|
<methodparam choice="opt"><type>string</type><parameter>cache id</parameter></methodparam>
|
|
|
|
|
<methodparam choice="opt"><type>string</type><parameter>compile id</parameter></methodparam>
|
|
|
|
|
<methodparam choice="opt"><type>int</type><parameter>expire time</parameter></methodparam>
|
|
|
|
|
</methodsynopsis>
|
|
|
|
|
<para>
|
|
|
|
|
Utilis<69>e pour nettoyer le(s) fichier(s) de cache d'un template en particulier.
|
|
|
|
|
Si vous avez plusieurs fichiers de cache pour ce template vous
|
|
|
|
|
pouvez en sp<73>cifier un en particulier en passant son identifiant
|
|
|
|
|
en deuxi<78>me param<61>tre. Vous pouvez aussi passer un identifiant
|
|
|
|
|
de compilation en troisi<73>me param<61>tre. Vous pouvez grouper des
|
|
|
|
|
templates ensemble afin qu'ils puissent <20>tre supprim<69>s en groupe.
|
|
|
|
|
R<>f<EFBFBD>rez-vous a la section sur le
|
|
|
|
|
<link linkend="caching">cache</link>
|
|
|
|
|
pour plus d'informations. Vous pouvez passer un quatri<72>me param<61>tre
|
|
|
|
|
pour indiquer un Gge minimum en secondes que le fichier en cache doit
|
|
|
|
|
avoir avant d'<27>tre effac<61>.
|
|
|
|
|
</para>
|
|
|
|
|
<example>
|
|
|
|
|
<title>clear_cache</title>
|
2004-04-13 11:47:32 +00:00
|
|
|
|
<programlisting>
|
|
|
|
|
// efface le fichier de cache de ce template
|
|
|
|
|
$smarty->clear_cache("index.tpl");
|
|
|
|
|
|
|
|
|
|
// efface un fichier de cache grGce a son identifiant de cache
|
|
|
|
|
$smarty->clear_cache("index.tpl","CACHEID");</programlisting>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
</example>
|
|
|
|
|
</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
|
|
|
|
|
-->
|