Gdn_Cache::activeEnabled PHP Method

activeEnabled() public static method

Return whether or not the current cache method is enabled.
public static activeEnabled ( type $ForceEnable = false ) : boolean
$ForceEnable type
return boolean status of active cache
    public static function activeEnabled($ForceEnable = false)
    {
        $AllowCaching = false;
        if (defined('CACHE_ENABLED_OVERRIDE')) {
            $AllowCaching |= CACHE_ENABLED_OVERRIDE;
        }
        $AllowCaching |= c('Cache.Enabled', false);
        $AllowCaching |= $ForceEnable;
        return (bool) $AllowCaching;
    }