403Webshell
Server IP : 14.225.204.176  /  Your IP : 216.73.216.6
Web Server : nginx/1.24.0
System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64
User : root ( 0)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/php/harmoniegolfpark.com/wp-content/plugins/w3-total-cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/php/harmoniegolfpark.com/wp-content/plugins/w3-total-cache/Cdn_CacheFlush.php
<?php
namespace W3TC;

/**
 * CDN cache purge object
 */

/**
 * class Cdn_CacheFlush
 */
class Cdn_CacheFlush {
	/**
	 * Advanced cache config
	 */
	var $_config = null;


	/**
	 * Array of urls to flush
	 *
	 * @var array
	 */
	private $flush_operation_requested = false;

	/**
	 * PHP5 Constructor
	 */
	function __construct() {
		$this->_config = Dispatcher::config();
	}

	/**
	 * Purges everything from CDNs that supports it
	 */
	function purge_all() {
		$this->flush_operation_requested = true;
		return true;
	}

	/**
	 * Purge a single url
	 *
	 * @param unknown $url
	 */
	function purge_url( $url ) {
		$common = Dispatcher::component( 'Cdn_Core' );
		$results = array();
		$files = array();
		$parsed = parse_url( $url );
		$local_site_path = isset( $parsed['path'] )? ltrim( $parsed['path'], '/' ) : '';
		$remote_path = $common->uri_to_cdn_uri( $local_site_path );
		$files[] = $common->build_file_descriptor( $local_site_path, $remote_path );
		$this->_flushed_urls[] = $url;
		$common->purge( $files, $results );
	}

	/**
	 * Clears global and repeated urls
	 */
	function purge_post_cleanup() {
		if ( $this->flush_operation_requested ) {
			$common = Dispatcher::component( 'Cdn_Core' );
			$results = array();
			$common->purge_all( $results );

			$count = 999;

			$this->flush_operation_requested = false;
		}

		return $count;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit