PHP 8.2.31
Preview: db.php Size: 2.38 KB
/home/nshryvcy/blissfulnepal.com/wp-content/db.php

<?php
/**
 * File: db.php
 *
 * W3 Total Cache Database module.
 *
 * phpcs:disable WordPress.PHP.NoSilencedErrors.Discouraged
 * phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited
 *
 * @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.
	$is_installing = ( defined( 'WP_INSTALLING' ) && WP_INSTALLING );

	$config = \W3TC\Dispatcher::config();
	if ( ( ! $is_installing && $config->get_boolean( 'dbcache.enabled' ) && class_exists( '\W3TC\Util_File' ) ) ||
		\W3TC\Util_Environment::is_dbcluster( $config ) ) {

		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(
					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( $db_driver_path )
						),
						array( 'strong' => array() )
					)
				);
			}
		}

		$GLOBALS['wpdb'] = \W3TC\DbCache_Wpdb::instance();
	}
}

Directory Contents

Dirs: 13 × Files: 3

Name Size Perms Modified Actions
- drwxr-xr-x 2023-11-12 05:03:57
Edit Download
backuply DIR
- drwxr-xr-x 2023-11-12 05:04:13
Edit Download
cache DIR
- drwxr-xr-x 2026-06-10 01:29:57
Edit Download
ewww DIR
- drwxr-xr-x 2024-07-17 15:16:09
Edit Download
litespeed DIR
- drwxr-xr-x 2025-10-15 04:30:11
Edit Download
logs DIR
- drwxr-xr-x 2023-11-12 05:03:57
Edit Download
plugins DIR
- drwxr-xr-x 2026-06-09 17:20:50
Edit Download
themes DIR
- drwxr-xr-x 2025-01-05 04:49:11
Edit Download
upgrade DIR
- drwxr-xr-x 2026-06-07 01:29:47
Edit Download
- drwxr-xr-x 2026-06-03 14:24:45
Edit Download
uploads DIR
- drwxrwxrwx 2025-12-31 18:30:49
Edit Download
- drwxr-xr-x 2026-02-01 12:54:32
Edit Download
wflogs DIR
- drwxr-xr-x 2026-06-10 02:10:10
Edit Download
330 B lrw-r--r-- 2026-05-06 14:32:34
Edit Download
2.38 KB lrw-r--r-- 2025-05-20 13:57:27
Edit Download
28 B lrw-r--r-- 2023-11-12 05:03:57
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).