HEX
Server: Apache
System: Linux digivps 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC 2025 x86_64
User: www (1000)
PHP: 8.3.15
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/healthyton.com/wp-content/plugins/w3-total-cache/Cdnfsd_StackPath_Engine.php
<?php
namespace W3TC;



class Cdnfsd_StackPath_Engine {
	private $api_key;
	private $zone_id;



	function __construct( $config = array() ) {
error_log( __METHOD__ . ': ' . print_r( debug_backtrace( 0 ), true ) );
		$this->api_key = $config['api_key'];
		$this->zone_id = $config['zone_id'];
	}



	function flush_urls( $urls ) {
		if ( empty( $this->api_key ) || empty( $this->zone_id ) )
			throw new \Exception( __( 'API key not specified.', 'w3-total-cache' ) );

		$api = Cdn_StackPath_Api::create( $this->api_key );

		$files = array();
		foreach ( $urls as $url ) {
			$parsed = parse_url( $url );
			$relative_url =
				( isset( $parsed['path'] ) ? $parsed['path'] : '/' ) .
				( isset( $parsed['query'] ) ? '?' . $parsed['query'] : '' );
			$files[] = $relative_url;
		}
		$api->delete_site_cache( $this->zone_id, $files );
	}



	/**
	 * Flushes CDN completely
	 */
	function flush_all() {
		if ( empty( $this->api_key ) || empty( $this->zone_id ) )
			throw new \Exception( __( 'API key not specified.', 'w3-total-cache' ) );

		$api = Cdn_StackPath_Api::create( $this->api_key );
		$api->delete_site_cache( $this->zone_id );
	}
}