public static activeEnabled ( type $ForceEnable = false ) : boolean | ||
$ForceEnable | type | |
리턴 | 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;
}