mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
fixed linking
This commit is contained in:
@@ -2,26 +2,22 @@
|
|||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<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
|
||||||
|
Reference in New Issue
Block a user