fixed linking

This commit is contained in:
messju
2005-12-10 08:54:14 +00:00
parent 0c9e1c3f69
commit 9ec68204ac

View File

@@ -3,25 +3,21 @@
<sect1 id="caching.cacheable"> <sect1 id="caching.cacheable">
<title>Controlling Cacheability of Plugins' Output</title> <title>Controlling Cacheability of Plugins' Output</title>
<para> <para>
Since Smarty-2.6.0 plugins the cacheability of plugins can be declared Since Smarty-2.6.0 plugins the cacheability of plugins can be
when registering them. The third parameter to declared when registering them. The third parameter to <link
<link linkend="api.register.block">register_block()</link>, linkend="api.register.block">register_block()</link>, <link
<link
linkend="api.register.compiler.function">register_compiler_function() linkend="api.register.compiler.function">register_compiler_function()
</link> and </link> and <link
<link linkend="api.register.block">register_function()</link> is called linkend="api.register.function">register_function()</link> is
<parameter>$cacheable</parameter> and defaults to true which is also called <parameter>$cacheable</parameter> and defaults to true which
the behaviour of plugins in Smarty versions before 2.6.0 is also the behaviour of plugins in Smarty versions before 2.6.0
</para> </para>
<para> <para>
When registering a plugin with $cacheable=false the plugin is When registering a plugin with $cacheable=false the plugin is
called everytime the page is displayed, even if the page comes called everytime the page is displayed, even if the page comes
from the cache. The plugin function behaves a little like an from the cache. The plugin function behaves a little like an
<link linkend="plugins.inserts">insert</link> function. <link linkend="plugins.inserts">insert</link> function.
</para> </para>
<para> <para>
In contrast to <link linkend="plugins.inserts">insert</link> In contrast to <link linkend="plugins.inserts">insert</link>
the attributes to the plugins are not cached by default. They can be the attributes to the plugins are not cached by default. They can be