public HttpResponseMessage GetPerformanceSettings()
        {
            try
            {
                var portalId     = PortalSettings.Current.PortalId;
                var perfSettings = new
                {
                    PortalName = PortalSettings.Current.PortalName,

                    CachingProvider               = _performanceController.GetCachingProvider(),
                    PageStatePersistence          = Host.PageStatePersister,
                    ModuleCacheProvider           = Host.ModuleCachingMethod,
                    PageCacheProvider             = Host.PageCachingMethod,
                    CacheSetting                  = Host.PerformanceSetting,
                    AuthCacheability              = Host.AuthenticatedCacheability,
                    UnauthCacheability            = Host.UnauthenticatedCacheability,
                    SslForCacheSynchronization    = Host.UpgradeForceSsl,
                    ClientResourcesManagementMode = PortalController.GetPortalSetting("ClientResourcesManagementMode", portalId, "h"),

                    CurrentHostVersion         = Host.CrmVersion.ToString(CultureInfo.InvariantCulture),
                    HostEnableCompositeFiles   = Host.CrmEnableCompositeFiles,
                    HostMinifyCss              = Host.CrmMinifyCss,
                    HostMinifyJs               = Host.CrmMinifyJs,
                    CurrentPortalVersion       = GetPortalVersion(portalId),
                    PortalEnableCompositeFiles = Parse(PortalController.GetPortalSetting(ClientResourceSettings.EnableCompositeFilesKey, portalId, "false")),
                    PortalMinifyCss            = Parse(PortalController.GetPortalSetting(ClientResourceSettings.MinifyCssKey, portalId, "false")),
                    PortalMinifyJs             = Parse(PortalController.GetPortalSetting(ClientResourceSettings.MinifyJsKey, portalId, "false")),

                    // Options
                    CachingProviderOptions      = _performanceController.GetCachingProviderOptions(),
                    PageStatePersistenceOptions = _performanceController.GetPageStatePersistenceOptions(),
                    ModuleCacheProviders        = _performanceController.GetModuleCacheProviders(),
                    PageCacheProviders          = _performanceController.GetPageCacheProviders(),
                    CacheSettingOptions         = _performanceController.GetCacheSettingOptions(),
                    AuthCacheabilityOptions     = _performanceController.GetCacheabilityOptions(),
                    UnauthCacheabilityOptions   = _performanceController.GetCacheabilityOptions()
                };
                return(Request.CreateResponse(HttpStatusCode.OK, perfSettings));
            }
            catch (Exception exc)
            {
                Logger.Error(exc);
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, exc));
            }
        }