Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
\$cache\_dir {#variable.cache.dir}
2
============
3
 
4
This is the name of the directory where template caches are stored. By
5
default this is `./cache`, meaning that Smarty will look for the
6
`cache/` directory in the same directory as the executing php script.
7
**This directory must be writeable by the web server**, [see
8
install](#installing.smarty.basic) for more info.
9
 
10
You can also use your own [custom cache implementation](#caching.custom)
11
to control cache files, which will ignore this setting. See also
12
[`$use_sub_dirs`](#variable.use.sub.dirs).
13
 
14
> **Note**
15
>
16
> This setting must be either a relative or absolute path. include\_path
17
> is not used for writing files.
18
 
19
> **Note**
20
>
21
> It is not recommended to put this directory under the web server
22
> document root.
23
 
24
> **Note**
25
>
26
> As of Smarty 3.1 the attribute \$cache\_dir is no longer accessible
27
> directly. Use [`getCacheDir()`](#api.get.cache.dir) and
28
> [`setCacheDir()`](#api.set.cache.dir) instead.
29
 
30
See also [`getCacheDir()`](#api.get.cache.dir),
31
[`setCacheDir()`](#api.set.cache.dir), [`$caching`](#variable.caching),
32
[`$use_sub_dirs`](#variable.use.sub.dirs),
33
[`$cache_lifetime`](#variable.cache.lifetime),
34
[`$cache_modified_check`](#variable.cache.modified.check) and the
35
[caching section](#caching).