aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap.php
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/bootstrap.php')
-rw-r--r--bootstrap/bootstrap.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/bootstrap/bootstrap.php b/bootstrap/bootstrap.php
index 36c298e..aab8bbe 100644
--- a/bootstrap/bootstrap.php
+++ b/bootstrap/bootstrap.php
@@ -30,12 +30,14 @@ if ( ! defined('INCLASS') )
define('INCLASS', 'class/');
# redis access
-# if ( ! defined('USE_REDIS') )
-# define('USE_REDIS', false);
-# if ( ! defined('REDIS_CONNECT') )
-# define('REDIS_CONNECT', '/var/run/redis/redis.sock');
-# if ( ! defined('REDIS_DBNAME') )
-# define('REDIS_DBNAME', 1);
+ if ( ! defined('USE_REDIS') )
+ define('USE_REDIS', true);
+ if ( ! defined('REDIS_CONNECT') )
+ define('REDIS_CONNECT', '/var/run/redis/redis.sock');
+ if ( ! defined('REDIS_DB') )
+ define('REDIS_DB', 2);
+ if ( ! defined('CACHEPREFIX') )
+ define('CACHEPREFIX', 'jg_');
# redirects to correct host
if ( $_SERVER['HTTP_HOST'] != HOST){
@@ -45,6 +47,7 @@ if ( $_SERVER['HTTP_HOST'] != HOST){
}
require(ABSPATH . 'functions.php');
+require(ABSPATH . INCLASS . 'cache.php');
require(ABSPATH . INCLASS . 'mysql.php');
require(ABSPATH . INCLASS . 'user.php');