403Webshell
Server IP : 123.56.80.60  /  Your IP : 216.73.216.78
Web Server : Apache/2.4.54 (Win32) OpenSSL/1.1.1s PHP/7.4.33 mod_fcgid/2.3.10-dev
System : Windows NT iZhx3sob14hnz7Z 10.0 build 14393 (Windows Server 2016) i586
User : SYSTEM ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/site/20241224/spunner/wp-content/plugins/astra-sites/inc/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/site/20241224/spunner/wp-content/plugins/astra-sites/inc/classes/class-astra-sites-utils.php
<?php
/**
 * Astra Sites Utlis
 *
 * @since  1.0.0
 * @package Astra Sites
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! class_exists( 'Astra_Sites_Utils' ) ) :

	/**
	 * Astra_Sites_Utils
	 */
	class Astra_Sites_Utils {

		/**
		 * Third party cache plugin clear cache.
		 *
		 * @since 4.0.0
		 * @return void
		 */
		public static function third_party_cache_plugins_clear_cache() {
			// Clear LiteSpeed cache.
			if ( class_exists( '\LiteSpeed\Purge' ) ) {
				\LiteSpeed\Purge::purge_all();
			}

			// Clear cloudways cache.
			self::clear_cloudways_cache();
		}

		/**
		 * This function helps to purge all cache in clodways envirnoment.
		 * In presence of Breeze plugin (https://wordpress.org/plugins/breeze/)
		 *
		 * @since 4.0.0
		 * @return void
		 */
		public static function clear_cloudways_cache() {
			if ( ! class_exists( 'Breeze_Configuration' ) || ! class_exists( 'Breeze_CloudFlare_Helper' ) || ! class_exists( 'Breeze_Admin' ) ) {
				return;
			}

			// clear varnish cache.
			$admin = new Breeze_Admin();
			$admin->breeze_clear_varnish();

			// clear static cache.
			Breeze_Configuration::breeze_clean_cache();
			Breeze_CloudFlare_Helper::reset_all_cache();
		}
		
	}

endif;

Youez - 2016 - github.com/yon3zu
LinuXploit