403Webshell
Server IP : 68.178.247.200  /  Your IP : 216.73.217.50
Web Server : Apache
System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : x9dppmxs4rgd ( 8559391)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/x9dppmxs4rgd/public_html/wp-content/plugins/wp-fastest-cache/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/x9dppmxs4rgd/public_html/wp-content/plugins/wp-fastest-cache/inc/cli.php
<?php
/**
 * WP-CLI commands for WP Fastest Cache.
 */

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

// This is a WP-CLI command, so bail if it's not available.
if(!defined('WP_CLI')){
    return;
}


class wpfcCLI extends \WP_CLI_Command
{
    /**
     * Clears the cache.
     *
     * ## EXAMPLES
     *      wp fastest-cache clear all
     *      wp fastest-cache clear all and minified
     *
     *
     * @subcommand clear
     *
     * @param array $args Args.
     * @param array $args_assoc Associative args.
     *
     * @return void
     */
    public function wrong_usage(){
        $message = array("*************************************************************************",
                         "* Wrong usage!                                                          *",
                         "* Please read: https://www.wpfastestcache.com/features/wp-cli-commands/ *",
                         "*************************************************************************");
        WP_CLI::error_multi_line($message);
    }

    public function clear($args, $args_assoc){
        if(isset($GLOBALS['wp_fastest_cache'])){
            if(method_exists($GLOBALS['wp_fastest_cache'], 'deleteCache')){
                if(isset($args[0])){
                    if($args[0] == "all"){
                        if(isset($args[1]) && isset($args[2])){
                            if($args[1] == "and" && $args[2] == "minified"){
                                WP_CLI::line("Clearing the ALL cache...");
                                $GLOBALS['wp_fastest_cache']->deleteCache(true);
                                WP_CLI::success("The cache has been cleared!");
                            }else{
                                self::wrong_usage();
                            }
                        }else{
                            WP_CLI::line("Clearing the ALL cache...");
                            $GLOBALS['wp_fastest_cache']->deleteCache();
                            WP_CLI::success("The cache has been cleared!");
                        }
                    }else{
                        self::wrong_usage();
                    }
                }else{
                    self::wrong_usage();
                }
            }else{
                WP_CLI::error("deleteCache() does not exist!");
            }
        }else{
            WP_CLI::error("GLOBALS['wp_fastest_cache'] has not been defined!");
        }
    }
}

WP_CLI::add_command( 'fastest-cache', 'wpfcCLI' );

?>

Youez - 2016 - github.com/yon3zu
LinuXploit