2004-04-13 11:47:32 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
<!-- $Revision$ -->
|
|
|
|
<sect1 id="variable.cache.dir">
|
|
|
|
<title>$cache_dir</title>
|
|
|
|
<para>
|
|
|
|
This is the name of the directory where template caches are
|
2005-06-05 15:47:25 +00:00
|
|
|
stored. By default this is
|
2006-09-27 06:28:21 +00:00
|
|
|
<filename class="directory">./cache</filename>, meaning that
|
|
|
|
Smarty will look for the <filename class="directory">cache/</filename> directory
|
|
|
|
in the same directory as the executing php script.
|
2005-05-27 16:25:02 +00:00
|
|
|
<emphasis role="bold">This directory must
|
2006-09-27 06:28:21 +00:00
|
|
|
be writeable by the web server</emphasis>,
|
|
|
|
<link linkend="installing.smarty.basic">see install</link> for more info.
|
|
|
|
</para>
|
|
|
|
<para>
|
2005-05-27 16:25:02 +00:00
|
|
|
You can also use your own
|
2005-05-23 15:43:01 +00:00
|
|
|
<link linkend="section.template.cache.handler.func">
|
|
|
|
custom cache handler</link>
|
2004-04-13 11:47:32 +00:00
|
|
|
function to control cache files, which will ignore this
|
|
|
|
setting.
|
2005-05-27 16:25:02 +00:00
|
|
|
See also
|
2006-09-27 06:28:21 +00:00
|
|
|
<link linkend="variable.use.sub.dirs"><parameter>$use_sub_dirs</parameter></link>.
|
2004-04-13 11:47:32 +00:00
|
|
|
</para>
|
2004-04-14 15:53:39 +00:00
|
|
|
<note>
|
|
|
|
<title>Technical Note</title>
|
|
|
|
<para>
|
|
|
|
This setting must be either a relative or
|
|
|
|
absolute path. include_path is not used for writing files.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
<note>
|
|
|
|
<title>Technical Note</title>
|
|
|
|
<para>
|
|
|
|
It is not recommended to put this directory under
|
|
|
|
the web server document root.
|
|
|
|
</para>
|
|
|
|
</note>
|
2005-05-27 16:25:02 +00:00
|
|
|
|
|
|
|
<para>
|
|
|
|
See also
|
2006-09-27 06:28:21 +00:00
|
|
|
<link linkend="variable.caching"><parameter>$caching</parameter></link>,
|
|
|
|
<link linkend="variable.use.sub.dirs"><parameter>$use_sub_dirs</parameter></link>,
|
|
|
|
<link linkend="variable.cache.lifetime"><parameter>$cache_lifetime</parameter></link>,
|
|
|
|
<link linkend="variable.cache.handler.func"><parameter>$cache_handler_func</parameter></link>,
|
|
|
|
<link linkend="variable.cache.modified.check"><parameter>$cache_modified_check</parameter></link>
|
|
|
|
and the
|
|
|
|
<link linkend="caching">caching section</link>.
|
2005-05-27 16:25:02 +00:00
|
|
|
</para>
|
|
|
|
</sect1>
|
2004-04-14 15:53:39 +00:00
|
|
|
|
2004-04-13 11:47:32 +00:00
|
|
|
<!-- 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
|
2004-04-14 15:53:39 +00:00
|
|
|
-->
|
2005-06-05 15:47:25 +00:00
|
|
|
|