File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -218,8 +218,8 @@ public async Task<IActionResult> ExecuteAsync(StoredProcedureRequestContext cont
218218 bool dbPolicyConfigured = ! string . IsNullOrEmpty ( structure . DbPolicyPredicatesForOperations [ EntityActionOperation . Read ] ) ;
219219 bool entityCacheEnabled = runtimeConfig . Entities [ structure . EntityName ] . IsCachingEnabled ;
220220
221- // If a db policy is resolved for the read operation, skip the cache. We want to avoid caching token metadata
222- // because token metadata can change frequently and we want to avoid caching it.
221+ // If a db policy is configured for the read operation in the context of the executing role, skip the cache.
222+ // We want to avoid caching token metadata because token metadata can change frequently and we want to avoid caching it.
223223 if ( ! dbPolicyConfigured && entityCacheEnabled )
224224 {
225225 DatabaseQueryMetadata queryMetadata = new ( queryText : queryString , dataSource : dataSourceName , queryParameters : structure . Parameters ) ;
You can’t perform that action at this time.
0 commit comments