File: /config.inc.php

Description

AlberT-cache fast and portable full-page caching system

You have simply to include the main cache filename AlberT-cache.inc.php, eventually overwriting some configuration variables just before inclusion

Classes defined in this file

CLASS NAME

DESCRIPTION

Include/Require Statements

Global Variables

$CACHE_1SITE (line 89)

bool $CACHE_1SITE : 1

Set if the hostname has to be appended to the cache filename, turn it to 0 in a multi site environment; defaults to 1.

The value of this variable affects the entire site.

$CACHE_ALSO (line 57)

mixed $CACHE_ALSO : NULL

Put here additional variables you want the cache to be based on.

This configuration variable may be overwritten in every page. This is usefull if you want a different page based on the value of a particular variable not yet in POST or GET. i.e.: your pages are different based on the value of $_SESSION['username'].

$CACHE_DEBUG (line 69)

bool $CACHE_DEBUG : 0

Turn debugging on/off, defaults to 0.

The value of this variable affects the entire site.

$CACHE_DIR (line 95)

string $CACHE_DIR : dirname(__FILE__).'/cache'

Set the directory name in which to store cache files.

The value of this variable affects the entire site.

$CACHE_EXP (line 82)

int $CACHE_EXP : 900

Set the number of seconds the cache will be valid, defaults to 900 (15 minutes).

The value of this variable affects the entire site.

$CACHE_GC (line 101)

bool $CACHE_GC : 1

Set the probability the Garbage Collector will be run, defaults to 1 (1%)

The value of this variable affects the entire site.

$CACHE_GZIP (line 27)

bool $CACHE_GZIP : 1

Whether or not to use GZIP, defaults to 1.

This configuration variable may be overwritten in every page.

$CACHE_ON (line 75)

bool $CACHE_ON : 1

Turn caching on/off, defaults to 1.

The value of this variable affects the entire site.

$CACHE_POST (line 34)

bool $CACHE_POST : 1

Whether or not to cache POST, defaults to 1.

This configuration variable may be overwritten in every page.

$CACHE_TIMEOUT (line 43)

int $CACHE_TIMEOUT : NULL

Sets the cache timeout, a value of -1 will disable caching, but still allows gzipping.

This configuration variable may be overwritten in every page.

$CACHE_UMASK (line 108)

int $CACHE_UMASK : 0022

Set the 'umask' for the cache files.

The value of this variable affects the entire site. You don't need to change if you don't know what it is :-P

Constants

Functions


Documentation generated on Wed, 15 Dec 2004 15:11:10 +0100 by phpDocumentor 1.2.3