Documentation is available at config.inc.php
1 <?php
2 /**
3 * AlberT-cache
4 * fast and portable full-page caching system
5 *
6 *
7 * You have simply to include the main cache filename
8 * {@link AlberT-cache.inc.php }, eventually overwriting some
9 * configuration variables just <b>before</b> inclusion
10 *
11 * @copyright Copyleft © Emiliano Gabrielli
12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
13 * @author Emiliano Gabrielli <AlberT@SuperAlberT.it>
14 * @version $Id: config.inc.php,v 1.6 2004/12/14 17:38:07 albert Exp $
15 * @package AlberT-cache
16 */
17
18 /**#@+
19 * <p>
20 * This configuration variable may be overwritten in every page.
21 */
22
23 /**
24 * Whether or not to use GZIP, defaults to 1.
25 * @global bool $CACHE_GZIP
26 */
27 if (!isset($CACHE_GZIP))
28 $CACHE_GZIP = 1;
29
30 /**
31 * Whether or not to cache POST, defaults to 1.
32 * @global bool $CACHE_POST
33 */
34 if (!isset($CACHE_POST))
35 $CACHE_POST = 1;
36
37 /**
38 * Sets the cache timeout, a value of -1 will disable
39 * caching, but still allows gzipping.
40 *
41 * @global int $CACHE_TIMEOUT
42 */
43 if (!isset($CACHE_TIMEOUT))
44 $CACHE_TIMEOUT = NULL;
45
46 /**
47 * Put here additional variables you want the cache
48 * to be based on.
49 *
50 * This is usefull if you want a different page based on the
51 * value of a particular variable not yet in POST or GET.
52 * i.e.: your pages are different based on the value of
53 * $_SESSION['username'].
54 *
55 * @global mixed $CACHE_ALSO
56 */
57 if (!isset($CACHE_ALSO))
58 $CACHE_ALSO = NULL;
59
60 /**#@-*/
61
62 /**#@+
63 * The value of this variable affects the entire site.
64 */
65
66 /** Turn debugging on/off, defaults to 0.
67 * @global bool $CACHE_DEBUG
68 */
69 $CACHE_DEBUG = 0;
70
71 /**
72 * Turn caching on/off, defaults to 1.
73 * @global bool $CACHE_ON
74 */
75 $CACHE_ON = 1;
76
77 /**
78 * Set the number of seconds the cache will be valid,
79 * defaults to 900 (15 minutes).
80 * @global int $CACHE_EXP
81 */
82 $CACHE_EXP = 900;
83
84 /**
85 * Set if the hostname has to be appended to the cache filename,
86 * turn it to 0 in a multi site environment; defaults to 1.
87 * @global bool $CACHE_1SITE
88 */
89 $CACHE_1SITE = 1;
90
91 /**
92 * Set the directory name in which to store cache files.
93 * @global string $CACHE_DIR
94 */
95 $CACHE_DIR = dirname(__FILE__).'/cache';
96
97 /**
98 * Set the probability the Garbage Collector will be run, defaults to 1 (1%)
99 * @global bool $CACHE_GC
100 */
101 $CACHE_GC = 1;
102
103 /**
104 * Set the 'umask' for the cache files.
105 * You don't need to change if you don't know what it is :-P
106 * @global int $CACHE_UMASK
107 */
108 $CACHE_UMASK = 0022;
109
110 /**#@-*/
111 ?>