$12 GRAYBYTE WORDPRESS FILE MANAGER $94

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/var/softaculous/sitepad/editor/site-data/plugins/speedycache-pro/main/

HOME
Current File : /var/softaculous/sitepad/editor/site-data/plugins/speedycache-pro/main//cli.php
<?php
/*
* SPEEDYCACHE
* https://speedycache.com/
* (c) SpeedyCache Team
*/

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

if(!defined('WP_CLI')){
    return;
}

class speedycache_cli extends \WP_CLI_Command{


	/**
	  * Purges/Cleares cache or minified files
	  * ## OPTIONS
	  * <type>
	  * : Purges cache or minified
	  * ---
	  * options:
	  *  - cache
	  *  - and minified
	  *
	  * ## EXAMPLES
	  * # Purge Cache
	  * $ wp speedycache purge cache
	  *
	  * # Purge cache and minfied
	  * $ wp speedycache purge cache and minified
	*/
	public function purge($args, $args_assoc){
		global $speedycache;

		if(!isset($speedycache)){
			WP_CLI::error('speedycache has not been defined!');
		}

		if(!function_exists('speedycache_delete_cache')){
			WP_CLI::error('speedycache_delete_cache() does not exist!');
		}

		if(empty($args[0]) || $args[0] !== 'cache'){
			self::wrong_usage();
		}
		
		if(empty($args[1]) || empty($args[2])){
			$this->delete_cache();
			return;
		}
		
		if($args[1] == 'and' && $args[2] == 'minified'){
			$this->delete_cache(true);
			return;
		}
	
		self::wrong_usage();
	}
	
	private function delete_cache($minified_too = false){
		if(function_exists('speedycache_delete_cache')){
			WP_CLI::error('Somethinng Went Wrong: Unable to delete cache');
		}

		WP_CLI::line('Clearing the ALL cache...');
		
		if(defined('SPEEDYCACHE_VERSION') && version_compare(SPEEDYCACHE_VERSION, '1.2.0', '>=')){
			$delete['minified'] = $minified_too;
			\SpeedyCache\Delete::run($delete);
		} else {
			speedycache_delete_cache($minified_too);
		}

		WP_CLI::success('The cache has been cleared!');
	}
}

WP_CLI::add_command('speedycache', 'speedycache_cli');


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Feb 2026 2.55 AM
root / root
0755
admin.php
24.343 KB
18 Feb 2026 11.32 PM
root / root
0644
bloat.php
10.18 KB
18 Feb 2026 11.32 PM
root / root
0644
cli.php
1.627 KB
18 Feb 2026 11.32 PM
root / root
0644
commoncss.php
3.654 KB
18 Feb 2026 11.32 PM
root / root
0644
criticalcss.php
9.979 KB
18 Feb 2026 11.32 PM
root / root
0644
db.php
2.6 KB
18 Feb 2026 11.32 PM
root / root
0644
enhanced.php
47.305 KB
18 Feb 2026 11.32 PM
root / root
0644
googlefonts.php
5.604 KB
18 Feb 2026 11.32 PM
root / root
0644
image.php
71.204 KB
18 Feb 2026 11.32 PM
root / root
0644
index.html
0.089 KB
18 Feb 2026 11.32 PM
root / root
0644
lazyload.php
14.829 KB
18 Feb 2026 11.32 PM
root / root
0644
license.php
4.116 KB
18 Feb 2026 11.32 PM
root / root
0644
logs.php
7.611 KB
18 Feb 2026 11.32 PM
root / root
0644
metaboxpro.php
1.972 KB
18 Feb 2026 11.32 PM
root / root
0644
mobile.php
1.568 KB
18 Feb 2026 11.32 PM
root / root
0644
object-cache-lib.php
10.857 KB
18 Feb 2026 11.32 PM
root / root
0644
objectcache.php
8.471 KB
18 Feb 2026 11.32 PM
root / root
0644
plugin-update-checker.php
52.862 KB
18 Feb 2026 11.32 PM
root / root
0644
premium.php
0.413 KB
18 Feb 2026 11.32 PM
root / root
0644
prooptimizations.php
2.123 KB
18 Feb 2026 11.32 PM
root / root
0644
renderblocking.php
36.803 KB
18 Feb 2026 11.32 PM
root / root
0644
settingspage.php
36.782 KB
18 Feb 2026 11.32 PM
root / root
0644
statistics.php
4.251 KB
18 Feb 2026 11.32 PM
root / root
0644
unusedcss.php
7.452 KB
18 Feb 2026 11.32 PM
root / root
0644
youtube.html
2.29 KB
18 Feb 2026 11.32 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF