| Server IP : 116.202.121.150 / Your IP : 216.73.216.171 Web Server : Apache System : Linux server5.febas.net 6.1.0-52-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.180-1 (2026-08-03) x86_64 User : k9887-1 ( 1171) PHP Version : 8.2.33 Disable Function : show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen, system, shell_exec, passthru, popen, proc_open, exec MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/k9887-1/htdocs/_fisch/wp-content/plugins/the7-cli/src/Commands/The7/ |
Upload File : |
<?php
namespace The7CLI\Commands\The7;
use \WP_CLI;
defined( 'ABSPATH' ) || exit;
/**
* Manage The7 cache.
*
* @package The7CLI\Commands\The7
*/
class Cache {
const COMMAND = 'the7 cache';
/**
* Flush The7 inner cache, dynamic css.
*
* ## EXAMPLES
* wp the7 cache flush
*
* @when after_admin_init
*/
public function flush() {
WP_CLI::log( 'Flush options cache ...' );
if ( function_exists( '_optionsframework_delete_defaults_cache' ) ) {
_optionsframework_delete_defaults_cache();
}
WP_CLI::success( 'Done.' );
WP_CLI::log( 'Flush css cache ...' );
if ( function_exists( 'presscore_refresh_dynamic_css' ) ) {
presscore_refresh_dynamic_css();
}
WP_CLI::success( 'Done.' );
WP_CLI::log( 'Flush shortcodes cache ...' );
if ( ! function_exists( 'the7_mass_regenerate_short_codes_inline_css' ) ) {
require PRESSCORE_MODS_DIR . '/theme-update/the7-update-functions.php';
}
the7_mass_regenerate_short_codes_inline_css();
WP_CLI::success( 'Done.' );
WP_CLI::success( 'Cache was flushed.' );
}
/**
* Flush The7 dynamic css.
*
* ## EXAMPLES
* wp the7 cache flush_css
*
* @when after_admin_init
*/
public function flush_css() {
WP_CLI::log( 'Flush css cache ...' );
if ( function_exists( 'presscore_refresh_dynamic_css' ) ) {
presscore_refresh_dynamic_css();
}
WP_CLI::success( 'Cache was flushed.' );
}
}