From 5853097561cddd1a2405ac9d9b9659ca8772cc5e Mon Sep 17 00:00:00 2001 From: elij Date: Sun, 29 May 2011 23:27:55 +0200 Subject: Make cache type selectable based on config value Provie a mechanism to specify cache type from NONE, APC, or MEMCACHE based on a config variable. If MEMCACHE type is selected, a list of servers can be specified to provide multiserver support. Note that php-memcaced is required for MEMCACHE support. Lukas: Minor commenting style fixes. Signed-off-by: Lukas Fleischer --- web/lib/config.inc.php.proto | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'web/lib/config.inc.php.proto') diff --git a/web/lib/config.inc.php.proto b/web/lib/config.inc.php.proto index 43c64d2..f710844 100644 --- a/web/lib/config.inc.php.proto +++ b/web/lib/config.inc.php.proto @@ -24,6 +24,15 @@ define("DEFAULT_LANG", "en"); # development. Should not be enabled in production. Default to 0 (off). define("SQL_DEBUG", 0); +# Set cache type. Either "APC", "MEMCACHE", or "NONE". Defaults to NONE. +#define("CACHE_TYPE", "APC"); +#define("CACHE_TYPE", "MEMCACHE"); + +# If using memcache cache_type, list servers. You can separate multiple servers +# with a comma, ex: '127.0.0.1:11211,127.0.0.1:11212'. If undefined, defaults +# to '127.0.0.1:11211'. +#define("MEMCACHE_SERVERS", '127.0.0.1:11211'); + # Languages we have translations for $SUPPORTED_LANGS = array( "ca" => "CatalĂ ", -- cgit v1.2.3-54-g00ecf