C:\xampp\htdocs\landing\wp-content\plugins\autoptimize\classes\autoptimizeCLI.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
 * WP-CLI commands for Autoptimize.
 */

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

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

class 
autoptimizeCLI extends \WP_CLI_Command
{
    
/**
     * Clears the cache.
     *
     * @subcommand clear
     *
     * @param array $args Args.
     * @param array $args_assoc Associative args.
     *
     * @return void
     */
    
public function clear$args$args_assoc ) {
        
WP_CLI::lineesc_html__'Flushing the cache...''autoptimize' ) );
        
autoptimizeCache::clearall();
        
WP_CLI::successesc_html__'Cache flushed.''autoptimize' ) );
    }
}

WP_CLI::add_command'autoptimize''autoptimizeCLI' );
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586