403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.217.46
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : root ( 0)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/test20.chuangfenglink.xyz/wp-content/plugins/chatway-live-chat/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/test20.chuangfenglink.xyz/wp-content/plugins/chatway-live-chat/inc/clear-all-cache.php
<?php 
/**
 * Chatway clear all cache
 *
 * @author  : Chatway
 * @license : GPLv3
 * */
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

if ( ! function_exists( "chatway_clear_all_caches" ) ) {
    function chatway_clear_all_caches() {
        try {
            global $wp_fastest_cache;
            // if W3 Total Cache is being used, clear the cache
            if ( function_exists( 'w3tc_flush_all' ) ) {
                w3tc_flush_all();

            }
            /* if WP Super Cache is being used, clear the cache */
            if ( function_exists( 'wp_cache_clean_cache' ) ) {
                global $file_prefix, $supercachedir;
                if ( empty( $supercachedir ) && function_exists( 'get_supercache_dir' ) ) {
                    $supercachedir = get_supercache_dir();
                }
                wp_cache_clean_cache( $file_prefix );
            }
            if ( class_exists( 'WpeCommon' ) ) {
                //be extra careful, just in case 3rd party changes things on us
                if ( method_exists( 'WpeCommon', 'purge_memcached' ) ) {
                    //WpeCommon::purge_memcached();
                }
                if ( method_exists( 'WpeCommon', 'clear_maxcdn_cache' ) ) {
                    //WpeCommon::clear_maxcdn_cache();
                }
                if ( method_exists( 'WpeCommon', 'purge_varnish_cache' ) ) {
                    //WpeCommon::purge_varnish_cache();
                }
            }
            /* WP Fastest Cache Plugin */
            if ( method_exists( 'WpFastestCache', 'deleteCache' ) && ! empty( $wp_fastest_cache ) ) {
                $wp_fastest_cache->deleteCache();
            }
            /* WP Rocket Plugin */
            if ( function_exists( 'rocket_clean_domain' ) ) {
                rocket_clean_domain();
                // Preload cache.
                if ( function_exists( 'run_rocket_sitemap_preload' ) ) {
                    run_rocket_sitemap_preload();
                }
            }
            /* Autoptimize Cache Plugin */
            if ( class_exists( "autoptimizeCache" ) && method_exists( "autoptimizeCache", "clearall" ) ) {
                autoptimizeCache::clearall();
            }
            /* LiteSpeed Plugin */
            if ( class_exists( "LiteSpeed_Cache_API" ) && method_exists( "autoptimizeCache", "purge_all" ) ) {
                LiteSpeed_Cache_API::purge_all();
            }
            /* Breeze Plugin */
            if ( class_exists( "Breeze_PurgeCache" ) && method_exists( "Breeze_PurgeCache", "breeze_cache_flush" ) ) {
                Breeze_PurgeCache::breeze_cache_flush();
            }
            /* Hummingbird */
            if ( class_exists( '\Hummingbird\Core\Utils' ) ) {
                $modules = \Hummingbird\Core\Utils::get_active_cache_modules();
                foreach ( $modules as $module => $name ) {
                    $mod = \Hummingbird\Core\Utils::get_module( $module );
                    if ( $mod->is_active() ) {
                        if ( 'minify' === $module ) {
                            $mod->clear_files();
                        } else {
                            $mod->clear_cache();
                        }
                    }
                }
            }
            /* WP Total Cache */
            if ( function_exists( 'wp_cache_clean_cache' ) ) {
                global $file_prefix;
                wp_cache_clean_cache( $file_prefix, true );
            }
        } catch ( Exception $e ) {
            return 1;
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit