diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-23 00:24:15 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-23 00:24:15 +1000 |
| commit | e7a0eb14f4171943d4ab034d751bd74cfb5dd788 (patch) | |
| tree | a15ed0428d90fc4499e299f093c12fc113d2ce36 /inc/config.php | |
| parent | a3cb21ba5b1dce89ee9c616d1e5552b62fbd4632 (diff) | |
cached bans with memcached (added Memcached option)
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php index 131ac46c..85335e5a 100644 --- a/inc/config.php +++ b/inc/config.php @@ -15,6 +15,7 @@ $config = Array( 'db' => Array(), + 'memcached' => Array(), 'cookies' => Array(), 'error' => Array(), 'dir' => Array(), @@ -37,9 +38,21 @@ $config['db']['password'] = ''; // Tinyboard database $config['db']['database'] = ''; + // Use a persistent connection + $config['db']['persistent'] = false; // Anything more to add to the DSN string (eg. port=xxx;foo=bar) $config['db']['dsn'] = ''; - + // 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; + // Memcached servers to use - http://www.php.net/manual/en/memcached.addservers.php + $config['memcached']['servers'] = Array( + Array('localhost', 11211) + ); + // The name of the session cookie (PHP's $_SESSION) $config['cookies']['session']= 'imgboard'; @@ -608,6 +621,8 @@ // Link imageboard to your Google Analytics account to track users and provide marketing insights. // $config['google_analytics'] = 'UA-xxxxxxx-yy'; + // Keep the Google Analytics cookies to one domain -- ga._setDomainName() + // $config['google_analytics_domain'] = 'www.example.org'; if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) { // You cannot request this file directly. |
