true, 'cacheDir' => $config_vars['cache']['dir'] . DIRECTORY_SEPARATOR, 'lifeTime' => 86400, //604800, //One day, cache should be cleared when the data is modified 'fileLocking' => true, 'writeControl' => true, 'readControl' => true, 'memoryCaching' => true, 'onlyMemoryCaching' => $config_vars['cache']['only_memory_cache_enable'], 'automaticSerialization' => true, 'hashedDirectoryLevel' => 1, 'fileNameProtection' => false, 'redisHost' => ( isset( $config_vars['cache']['redis_host'] ) ) ? $config_vars['cache']['redis_host'] : '', 'redisDB' => ( isset( $config_vars['cache']['redis_db'] ) ) ? $config_vars['cache']['redis_db'] : '', ]; if ( isset( $config_vars['cache']['redis_host'] ) && $config_vars['cache']['redis_host'] != '' ) { require_once( Environment::getBasePath() . 'classes' . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . 'other' . DIRECTORY_SEPARATOR . 'Redis_Cache_Lite.class.php' ); $cache = $ADODB_CACHE = new Redis_Cache_Lite( $cache_options ); } else { $cache = new Cache_Lite( $cache_options ); } ?>