documented parameters of Smarty::clear_compiled_tpl()

This commit is contained in:
messju
2004-01-25 15:52:14 +00:00
parent 53baf8295a
commit 152533aac4

View File

@@ -741,12 +741,18 @@ $smarty->clear_cache("index.tpl","CACHEID");</programlisting>
<funcsynopsis> <funcsynopsis>
<funcprototype> <funcprototype>
<funcdef>void <function>clear_compiled_tpl</function></funcdef> <funcdef>void <function>clear_compiled_tpl</function></funcdef>
<paramdef>string <parameter>tpl_file</parameter></paramdef> <paramdef>string <parameter><optional>tpl_file</parameter></optional></paramdef>
<paramdef>string <parameter><optional>compile_id</optional></parameter></paramdef>
<paramdef>int <parameter><optional>exp_time</optional></parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
This clears the compiled version of the specified template This clears the compiled version of the specified template
resource, or all compiled template files if one is not specified. resource, or all compiled template files if one is not specified.
if you pass a compile_id only the compiled template for this
specific compile_id is cleared. if you pass an exp_time, then only
compiled templates older than exp_time seconds are cleared, by
default all compiled templates are cleared regardless of their age.
This function is for advanced use only, not normally needed. This function is for advanced use only, not normally needed.
</para> </para>
<example> <example>