add Redis for cache and Mysqli for database query

This commit is contained in:
xiaomlove
2020-12-26 20:09:15 +08:00
parent a3ba82be64
commit c961f32bb3
9 changed files with 582 additions and 16 deletions

View File

@@ -2,9 +2,12 @@
if(!defined('IN_TRACKER'))
die('Hacking attempt!');
error_reporting(E_ERROR | E_PARSE);
ini_set('display_errors', 0);
include_once($rootpath . 'classes/class_cache.php'); //Require the caching class
$Cache = NEW CACHE(); //Load the caching class
ini_set('display_errors', $TWEAK['display_errors']);
//include_once($rootpath . 'classes/class_cache.php'); //Require the caching class
//$Cache = NEW CACHE(); //Load the caching class
//@todo
include_once($rootpath . 'classes/class_cache_redis.php'); //Require the caching class
$Cache = new RedisCache(); //Load the caching class
$Cache->setLanguageFolderArray(get_langfolder_list());
define('TIMENOW', time());
$USERUPDATESET = array();