summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorMacil Tech <maciltech@gmail.com>2012-12-02 19:00:58 -0700
committerMacil Tech <maciltech@gmail.com>2013-01-22 20:22:16 -0600
commit970b6e83764fd3fd8f16af80a643647602067d9a (patch)
tree1501cb58941732bf6ca4abe94830aee98196e830 /inc/config.php
parent7a68fc952548d3f275518f675888143d93e9148a (diff)
Add Redis caching support.
Compatible with the phpredis extension: https://github.com/nicolasff/phpredis
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php
index 9e1147d7..04fae39a 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -91,6 +91,7 @@
$config['cache']['enabled'] = false;
// $config['cache']['enabled'] = 'memcached';
+ // $config['cache']['enabled'] = 'redis';
// $config['cache']['enabled'] = 'apc';
// $config['cache']['enabled'] = 'xcache';
@@ -104,6 +105,11 @@
$config['cache']['memcached'] = array(
array('localhost', 11211)
);
+
+ // Redis server to use. Location, port, password, database id.
+ // Note that Tinyboard may clear the database at times, so you may want to pick a
+ // database id just for Tinyboard to use.
+ $config['cache']['redis'] = array('localhost', 6379, '', 1);
/*
* ====================