Skip to content

Commit 437ced8

Browse files
committed
update comment per feedback to reflect db policy configured for read operation for role context
1 parent 927d363 commit 437ced8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Core/Resolvers/SqlQueryEngine.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)