mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-08 18:21:03 +02:00
56 lines
2.0 KiB
XML
56 lines
2.0 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<!-- 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é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écifier un en particulier en passant son identifiant
|
|
en deuxième paramètre. Vous pouvez aussi passer un identifiant
|
|
de compilation en troisième paramètre. Vous pouvez grouper des
|
|
templates ensemble afin qu'ils puissent être supprimés en groupe.
|
|
Référez-vous a la section sur le
|
|
<link linkend="caching">cache</link>
|
|
pour plus d'informations. Vous pouvez passer un quatrième paramètre
|
|
pour indiquer un Gge minimum en secondes que le fichier en cache doit
|
|
avoir avant d'être effacé.
|
|
</para>
|
|
<example>
|
|
<title>clear_cache</title>
|
|
<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>
|
|
</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
|
|
-->
|