at path:
ROOT
/
wp-content
/
db.php
run:
R
W
Run
cache
DIR
2026-10-13 17:12:42
R
W
Run
languages
DIR
2026-10-13 17:06:13
R
W
Run
plugins
DIR
2026-10-22 11:08:11
R
W
Run
themes
DIR
2026-10-13 14:41:33
R
W
Run
updraft
DIR
2026-10-13 17:10:22
R
W
Run
upgrade
DIR
2026-10-22 15:54:15
R
W
Run
upgrade-temp-backup
DIR
2026-10-19 17:26:51
R
W
Run
uploads
DIR
2026-10-22 11:08:11
R
W
Run
w3tc-config
DIR
2026-10-13 17:12:42
R
W
Run
wflogs
DIR
2026-10-24 07:17:32
R
W
Run
advanced-cache.php
1.33 KB
2026-10-13 17:12:42
R
W
Run
Delete
Rename
db.php
2.48 KB
2026-10-13 17:12:42
R
W
Run
Delete
Rename
index.php
28 By
2026-10-13 14:41:33
R
W
Run
Delete
Rename
object-cache.php
10.91 KB
2026-10-13 17:12:42
R
W
Run
Delete
Rename
error_log
up
📄
db.php
Save
<?php /** * File: db.php * * W3 Total Cache Database module. * * phpcs:disable WordPress.PHP.NoSilencedErrors.Discouraged * phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited * phpcs:disable WordPress.NamingConventions.PrefixAllGlobals * * @package W3TC */ if ( ! defined( 'ABSPATH' ) ) { die(); } if ( ! defined( 'W3TC_DIR' ) ) { define( 'W3TC_DIR', ( defined( 'WP_PLUGIN_DIR' ) ? WP_PLUGIN_DIR : WP_CONTENT_DIR . '/plugins' ) . '/w3-total-cache' ); } /** * Abort W3TC loading if WordPress is upgrading */ if ( ! @is_dir( W3TC_DIR ) || ! file_exists( W3TC_DIR . '/w3-total-cache-api.php' ) ) { if ( ! defined( 'WP_ADMIN' ) ) { global $wp_version; // lets don't show error on front end. if ( version_compare( $wp_version, '6.1-beta1', '>=' ) ) { require_once ABSPATH . WPINC . '/class-wpdb.php'; } else { require_once ABSPATH . WPINC . '/wp-db.php'; } } else { echo wp_kses( sprintf( // translators: 1 opening HTML strong tag, 2 closing HTML strong tag, 3 opening HTML strong tag, // translators: 4 file path, 5 closing HTML strong tag, 6 HTML line break. __( '%1$sW3 Total Cache Error:%2$s some files appear to be missing or out of place. Please re-install plugin or remove %3$s%4$s%5$s. %6$s', 'w3-total-cache' ), '<strong>', '</strong>', '<strong>', '</strong>', __FILE__, '<br />' ), array( 'strong' => array(), 'br' => array(), ) ); } } else { require_once W3TC_DIR . '/w3-total-cache-api.php'; // no caching during activation. $w3tc_is_installing = ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ); $w3tc_config = \W3TC\Dispatcher::config(); if ( ( ! $w3tc_is_installing && $w3tc_config->get_boolean( 'dbcache.enabled' ) && class_exists( '\W3TC\Util_File' ) ) || \W3TC\Util_Environment::is_dbcluster( $w3tc_config ) ) { if ( defined( 'DB_TYPE' ) ) { $w3tc_db_driver_path = sprintf( '%s/Db/%s.php', W3TC_LIB_DIR, DB_TYPE ); if ( file_exists( $w3tc_db_driver_path ) ) { require_once $w3tc_db_driver_path; } else { die( wp_kses( sprintf( // translators: 1 opening HTML strong tag, 2 closing HTML strong tag, 3 database driver file path. __( '%1$sW3 Total Cache Error:%2$s database driver doesn\'t exist: %3$s.', 'w3-total-cache' ), '<strong>', '</strong>', esc_html( $w3tc_db_driver_path ) ), array( 'strong' => array() ) ) ); } } $GLOBALS['wpdb'] = \W3TC\DbCache_Wpdb::instance(); } }