Skip to main content
All docs
V24.2

DashboardConfigurator.DataSourceCacheEnabled Property

Specifies whether the Web Dashboard Control caches its data sources.

Namespace: DevExpress.DashboardWeb

Assembly: DevExpress.Dashboard.v24.2.Web.dll

Declaration

public bool DataSourceCacheEnabled { get; set; }

Property Value

Type Description
Boolean

true to enable data source caching; otherwise, false.

Remarks

The Web Dashboard Control uses the caching mechanism to improve performance when working with data sources. For more information on the caching mechanism, refer to the following topic: Manage an In-Memory Data Cache.

Set the DataSourceCacheEnabled property to false to disable data source caching. When the caching is disabled, data is queried from the database each time a dashboard item requests data. ConfigureDataConnection and DataLoading events are fired every time data is requested.

The following code snippets disable cache in the ASP.NET Core Dashboard Control and ASP.NET MVC Dashboard Extension:

DashboardConfigurator configurator = new DashboardConfigurator();
configurator.DataSourceCacheEnabled = false;     
See Also