dashboard-devexpress-dot-dashboardweb-dot-aspxdashboard-6b791f4e.md
Specifies whether the Web Dashboard Control caches its data sources.
Namespace : DevExpress.DashboardWeb
Assembly : DevExpress.Dashboard.v25.2.Web.WebForms.dll
NuGet Package : DevExpress.Web.Dashboard
[DefaultValue(true)]
public bool DataSourceCacheEnabled { get; set; }
<DefaultValue(True)>
Public Property DataSourceCacheEnabled As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to enable data source caching; otherwise, false.
|
The Web Dashboard Control uses a 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. In that configuration, each time a dashboard item requests data, the control sends a query to the database. ConfigureDataConnection and DataLoading events fire with every query.
The following code snippet disables cache in the ASPxDashboard control:
<dx:ASPxDashboard ID="ASPxDashboard1" runat="server"
DataSourceCacheEnabled="false">
</dx:ASPxDashboard>
See Also