W3 Total Cache Error: some files appear to be missing or out of place. Please re-install plugin or remove %s.
', __FILE__ );
}
} else {
require_once W3TC_DIR . '/w3-total-cache-api.php';
// no caching during activation
$is_installing = ( defined( 'WP_INSTALLING' ) && WP_INSTALLING );
$config = \W3TC\Dispatcher::config();
if ( ( !$is_installing && $config->get_boolean( 'dbcache.enabled' ) ) || \W3TC\Util_Environment::is_dbcluster() ) {
if ( defined( 'DB_TYPE' ) ) {
$db_driver_path = sprintf( '%s/Db/%s.php', W3TC_LIB_DIR, DB_TYPE );
if ( file_exists( $db_driver_path ) ) {
require_once $db_driver_path;
} else {
die( sprintf( 'W3 Total Cache Error: database driver doesn\'t exist: %s.', $db_driver_path ) );
}
}
$GLOBALS['wpdb'] = \W3TC\DbCache_Wpdb::instance();
}
}