public static function isActivated()

in app/classes/Cache/Cache.php [107:116]


    public static function isActivated(): bool
    {
        // We don't want a global switch for the cache in Unit Tests
        // because we want to test functions with and without caching.
        if (defined('TESTING_CONTEXT')) {
            return self::$CACHE_ENABLED;
        }

        return defined('CACHE_ENABLED') ? CACHE_ENABLED : self::$CACHE_ENABLED; // @codeCoverageIgnore
    }