PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/v1world.us/wp-content/plugins/comet-cache/src/includes/traits/Ac/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/v1world.us/wp-content/plugins/comet-cache/src/includes/traits/Ac/AcPluginUtils.php

<?php
namespace WebSharks\CometCache\Traits\Ac;

use WebSharks\CometCache\Classes;

trait AcPluginUtils
{
    /**
     * Loads any advanced cache plugin files found inside `/wp-content/ac-plugins`.
     *
     * @since 150422 Rewrite.
     */
    public function loadAcPlugins()
    {
        if (!is_dir(WP_CONTENT_DIR.'/ac-plugins')) {
            return; // Nothing to do here.
        }
        $GLOBALS[GLOBAL_NS.'_advanced_cache']  = $this; // Self reference.
        $GLOBALS[GLOBAL_NS.'__advanced_cache'] = &$GLOBALS[GLOBAL_NS.'_advanced_cache'];
        if (!isset($GLOBALS['zencache__advanced_cache'])) {
            $GLOBALS['zencache_advanced_cache']  = &$GLOBALS[GLOBAL_NS.'_advanced_cache'];
            $GLOBALS['zencache__advanced_cache'] = &$GLOBALS[GLOBAL_NS.'_advanced_cache'];
        }
        foreach ((array) glob(WP_CONTENT_DIR.'/ac-plugins/*.php') as $_ac_plugin) {
            if (is_file($_ac_plugin)) {
                include_once $_ac_plugin;
            }
        }
        unset($_ac_plugin); // Houskeeping.
    }
}