PluginProbe
InfiniteWP Client / trunk
InfiniteWP Client vtrunk
1.13.10 1.13.7 trunk 0.1.4 0.1.5 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.11.0 1.11.1 1.12.1 1.12.3 All 92 releases
iwp-client / addons / wp_optimize / comet-cache-class.php

comet-cache-class.php in InfiniteWP Client trunk, at addons/wp_optimize/comet-cache-class.php

14 lines 434 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined('ABSPATH') )
3 die();
4
5 use WebSharks\CometCache\Classes\ApiBase;
6 function clearCometCacheIWP(){
7 $api = new ApiBase();
8 $plugin = $api->plugin(true);
9 $response = $plugin->clearCache(true);
10 if ($response === false) {
11 return array('error' => 'Unable to perform Comet cache', 'error_code' => 'comet_cache_plugin_delete_cache');
12 }
13 return array('success' => 'All cache files have been deleted');
14 }