HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wptoho/wp-content/themes/themify-ultra/themify/cache/advanced-cache.php
<?php

defined('ABSPATH') || exit;

/* DON`T MODIFY THIS FILE IT CAN BREAK ALL SITES. USE THEMIFY SETTINGS TO DISABLE IT */

/* Themify start */
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'GET' && !function_exists('themify_cache_loaded') && !empty($_SERVER['REQUEST_URI']) && empty(preg_grep('/wordpress_logged_in_/', array_keys($_COOKIE)))) {

    if (!((defined('DOING_AJAX') && DOING_AJAX) || (defined('XMLRPC_REQUEST') && XMLRPC_REQUEST) || (defined('DOING_CRON') && DOING_CRON) || (defined('REST_REQUEST') && REST_REQUEST) || (defined('APP_REQUEST') && APP_REQUEST) || (defined('SHORTINIT') && SHORTINIT) || strpos($_SERVER['REQUEST_URI'], 'robots.txt') !== false || strpos($_SERVER['REQUEST_URI'], 'wp-admin') !== false || strpos($_SERVER['REQUEST_URI'], 'wp-login') !== false || strpos($_SERVER['REQUEST_URI'], 'wp-json') !== false)) {

        function themify_cache_loaded() {
            $dir = rtrim(WP_CONTENT_DIR, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'tf_cache_config' . DIRECTORY_SEPARATOR . 'site';
            if (is_multisite()) {
                $dir .= '-' . get_current_blog_id();
            }
            $dir .= '.php';
            if (is_file($dir)) {
                include_once $dir;
                if (defined('TF_CACHE_FW') && TF_CACHE_FW && TF_CACHE_FW !== '#TF_CACHE_FW#') {
                    $dir = rtrim(TF_CACHE_FW, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'class-themify-cache.php';
                    if (is_file($dir)) {
                        include_once $dir;
                        TFCache::run();
                    }
                }
            }
        }

        if (is_multisite()) {
            add_action('ms_loaded', 'themify_cache_loaded', 5);
        } else {
            add_action('init', 'themify_cache_loaded', 0);
        }
    }
}
/*Themify End*/