memcached, APC, xcache

This commit is contained in:
Savetheinternet
2011-10-07 16:51:19 +11:00
parent 160647d196
commit 555688e880
5 changed files with 136 additions and 53 deletions

View File

@@ -23,7 +23,7 @@
$config = Array(
'db' => Array(),
'memcached' => Array(),
'cache' => Array(),
'cookies' => Array(),
'error' => Array(),
'dir' => Array(),
@@ -98,14 +98,24 @@
// Timeout duration in seconds (not all drivers support this)
$config['db']['timeout'] = 5;
// Optional Memcached server for more cache/optimization (currently at debug state)
$config['memcached']['enabled'] = false;
/*
* ====================
* Cache settings
* ====================
*/
$config['cache']['enabled'] = false;
// $config['cache']['enabled'] = 'memcached';
// $config['cache']['enabled'] = 'apc';
// $config['cache']['enabled'] = 'xcache';
// Timeout for cached objects such as posts and HTML
$config['cache']['timeout'] = 43200; // 12 hours
// Memcached servers to use - http://www.php.net/manual/en/memcached.addservers.php
$config['memcached']['servers'] = Array(
$config['cache']['memcached'] = Array(
Array('localhost', 11211)
);
// Timeout for cached objects such as posts and HTML
$config['memcached']['timeout'] = 43200; // 12 hours
/*
* ====================