HEX
Server: Apache
System: Linux d5123.usc1.stableserver.net 5.14.0-570.17.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Sat May 24 12:53:17 EDT 2025 x86_64
User: d5123 (1001)
PHP: 8.4.21
Disabled: NONE
Upload Files
File: /home/d5123/myboofola_com/wp-content/plugins/clsop/clear_cache.php
<?php

error_reporting( 0 ); // phpcs:ignore
ini_set( 'display_errors', 0 ); // phpcs:ignore

// Disable wp-cron to prevent cron tasks from executing from this script.
define( 'DISABLE_WP_CRON', true );

require_once '../../../wp-load.php';

if ( ! function_exists( 'rocket_clean_domain' ) ) {
	$clsop_response = [
		'success' => false,
		'message' => 'The plugin AccelerateWP seems not enabled on this site.',
	];
	die( wp_json_encode( $clsop_response ) );
}

if ( rocket_clean_domain() ) {
	$clsop_response = [
		'success' => true,
		'message' => 'Cache cleared.',
	];
} else {
	$clsop_response = [
		'success' => false,
		'message' => 'Something went wrong.',
	];
}

echo wp_json_encode( $clsop_response );