X7ROOT File Manager
Current Path:
/var/softaculous/sitepad/editor/site-data/plugins/speedycache-pro/main
var
/
softaculous
/
sitepad
/
editor
/
site-data
/
plugins
/
speedycache-pro
/
main
/
📁
..
📄
admin.php
(20.44 KB)
📄
bloat.php
(10.18 KB)
📄
cli.php
(1.63 KB)
📄
commoncss.php
(3.65 KB)
📄
criticalcss.php
(9.54 KB)
📄
db.php
(1.99 KB)
📄
enhanced.php
(47.3 KB)
📄
googlefonts.php
(5.57 KB)
📄
image.php
(70.96 KB)
📄
index.html
(91 B)
📄
lazyload.php
(14.7 KB)
📄
license.php
(4.12 KB)
📄
logs.php
(7.42 KB)
📄
metaboxpro.php
(1.97 KB)
📄
mobile.php
(1.57 KB)
📄
object-cache-lib.php
(10.86 KB)
📄
objectcache.php
(8.17 KB)
📄
plugin-update-checker.php
(52.86 KB)
📄
premium.php
(423 B)
📄
prooptimizations.php
(2.12 KB)
📄
renderblocking.php
(36.8 KB)
📄
settingspage.php
(33.71 KB)
📄
statistics.php
(4.25 KB)
📄
unusedcss.php
(7.45 KB)
📄
youtube.html
(2.29 KB)
Editing: 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');
Upload File
Create Folder