__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Timber\Integrations;
use Timber\Loader;
/**
* These are methods that can be executed by WPCLI, other CLI mechanism or other external controllers
* @package timber
*/
class Command {
public static function clear_cache( $mode = 'all' ) {
if ( is_array($mode) ) {
$mode = reset($mode);
}
if ( $mode == 'all' ) {
$twig_cache = self::clear_cache_twig();
$timber_cache = self::clear_cache_timber();
if ( $twig_cache && $timber_cache ) {
return true;
}
} else if ( $mode == 'twig' ) {
return self::clear_cache_twig();
} else if ( $mode == 'timber' ) {
return self::clear_cache_timber();
}
}
public static function clear_cache_timber() {
$loader = new Loader();
return $loader->clear_cache_timber();
}
public static function clear_cache_twig() {
$loader = new Loader();
return $loader->clear_cache_twig();
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ACF.php | File | 2.21 KB | 0775 |
|
| CoAuthorsPlus.php | File | 1.41 KB | 0775 |
|
| CoAuthorsPlusUser.php | File | 1.07 KB | 0775 |
|
| Command.php | File | 880 B | 0775 |
|
| Timber_WP_CLI_Command.php | File | 910 B | 0775 |
|
| WPML.php | File | 679 B | 0775 |
|