summaryrefslogtreecommitdiffstats
path: root/web/lib/config.inc.php.proto
diff options
context:
space:
mode:
authorelij <elij.mx@gmail.com>2011-05-29 23:27:55 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-06-22 15:21:21 +0200
commit5853097561cddd1a2405ac9d9b9659ca8772cc5e (patch)
treeb7df520c01981532a5d045153ce329ca693d3206 /web/lib/config.inc.php.proto
parent888db089c515270fd5cd9a9bedd217110f43bc4c (diff)
downloadaur-5853097561cddd1a2405ac9d9b9659ca8772cc5e.tar.gz
aur-5853097561cddd1a2405ac9d9b9659ca8772cc5e.tar.xz
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 <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/config.inc.php.proto')
-rw-r--r--web/lib/config.inc.php.proto9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/lib/config.inc.php.proto b/web/lib/config.inc.php.proto
index 43c64d22..f710844d 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Ă ",