WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcalosangeles/public_html/wp-content/plugins/autoupdater/lib/Helper/Cache.php
<?php
function_exists('add_action') or die;

/**
 * Exclude requests by
 *
 * Cookie
 *  cookie name: autoupdater
 *  cookie value: 1
 *  cookie name: wpengine_no_cache
 *  cookie value: 1
 *
 * Header
 *  header name: autoupdater
 *  header value: 2.0
 *
 * URL query parameter
 *  param name: autoupdater
 *  param value: api
 *  param name: autoupdater_nonce
 *  param value: {timestamp}
 */
class AutoUpdater_Helper_Cache
{
    /**
     * Sets cache exclusion rules that apply only when meet the given criteria
     */
    public static function setCacheExclusionRules()
    {
        // WP Optimize cache exclusion rules
        add_filter('wpo_cache_exception_cookies', function ($cache_exception_cookies = array()) {
            if (!is_array($cache_exception_cookies)) {
                $cache_exception_cookies = array();
            }
            $cache_exception_cookies[] = 'wpengine_no_cache';
            $cache_exception_cookies[] = 'autoupdater';
            return $cache_exception_cookies;
        });
    }

    /**
     * Turns off caching immediately
     */
    public static function noCache()
    {
        // WP Optimize cache exclusion
        add_filter('wpo_restricted_cache_page_type', function ($restricted = false) {
            return 'Installing plugin and theme updates';
        });
    }
}