| Server IP : 192.241.186.36 / Your IP : 216.73.216.199 Web Server : Apache/2.4.29 (Ubuntu) System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64 User : root ( 0) PHP Version : 7.4.32 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/carsdaddy/wp-content/ |
Upload File : |
<?php
use WP_Rocket\Buffer\Cache;
use WP_Rocket\Buffer\Config;
use WP_Rocket\Buffer\Tests;
defined( 'ABSPATH' ) || exit;
define( 'WP_ROCKET_ADVANCED_CACHE', true );
$rocket_path = '/var/www/html/carsdaddy/wp-content/plugins/wp-rocket/';
$rocket_config_path = '/var/www/html/carsdaddy/wp-content/wp-rocket-config/';
$rocket_cache_path = '/var/www/html/carsdaddy/wp-content/cache/wp-rocket/';
if (
version_compare( phpversion(), '7.2', '<' )
|| ! file_exists( $rocket_path )
|| ! file_exists( $rocket_config_path )
|| ! file_exists( $rocket_cache_path )
) {
define( 'WP_ROCKET_ADVANCED_CACHE_PROBLEM', true );
return;
}
spl_autoload_register(
function( $class ) use ( $rocket_path ) {
$rocket_classes = [
'WP_Rocket\\Buffer\\Abstract_Buffer' => $rocket_path . 'inc/classes/Buffer/class-abstract-buffer.php',
'WP_Rocket\\Buffer\\Cache' => $rocket_path . 'inc/classes/Buffer/class-cache.php',
'WP_Rocket\\Buffer\\Tests' => $rocket_path . 'inc/classes/Buffer/class-tests.php',
'WP_Rocket\\Buffer\\Config' => $rocket_path . 'inc/classes/Buffer/class-config.php',
'WP_Rocket\\Logger\\HTML_Formatter' => $rocket_path . 'inc/classes/logger/class-html-formatter.php',
'WP_Rocket\\Logger\\Logger' => $rocket_path . 'inc/classes/logger/class-logger.php',
'WP_Rocket\\Logger\\Stream_Handler' => $rocket_path . 'inc/classes/logger/class-stream-handler.php',
'WP_Rocket\\Traits\\Memoize' => $rocket_path . 'inc/classes/traits/trait-memoize.php',
];
if ( isset( $rocket_classes[ $class ] ) ) {
$file = $rocket_classes[ $class ];
} elseif ( strpos( $class, 'Monolog\\' ) === 0 ) {
$file = $rocket_path . 'vendor/monolog/monolog/src/' . str_replace( '\\', '/', $class ) . '.php';
} elseif ( strpos( $class, 'Psr\\Log\\' ) === 0 ) {
$file = $rocket_path . 'vendor/psr/log/' . str_replace( '\\', '/', $class ) . '.php';
} else {
return;
}
if ( file_exists( $file ) ) {
require $file;
}
}
);
if ( ! class_exists( '\WP_Rocket\Buffer\Cache' ) ) {
if ( ! defined( 'DONOTROCKETOPTIMIZE' ) ) {
define( 'DONOTROCKETOPTIMIZE', true ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
}
return;
}
$rocket_config_class = new Config(
[
'config_dir_path' => $rocket_config_path,
]
);
( new Cache(
new Tests(
$rocket_config_class
),
$rocket_config_class,
[
'cache_dir_path' => $rocket_cache_path,
]
) )->maybe_init_process();