Browse Source

Set `considerUow` when clearing the cache.

pull/19671/head
maliming 2 years ago
parent
commit
14f6f8be74
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 2
      modules/blogging/src/Volo.Blogging.Domain/Volo/Blogging/Posts/PostCacheInvalidator.cs
  2. 2
      modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionGrantCacheItemInvalidator.cs
  3. 2
      modules/tenant-management/src/Volo.Abp.TenantManagement.Domain/Volo/Abp/TenantManagement/TenantConfigurationCacheItemInvalidator.cs

2
modules/blogging/src/Volo.Blogging.Domain/Volo/Blogging/Posts/PostCacheInvalidator.cs

@ -17,7 +17,7 @@ namespace Volo.Blogging.Posts
public virtual async Task HandleEventAsync(PostChangedEvent post)
{
await Cache.RemoveAsync(post.BlogId.ToString());
await Cache.RemoveAsync(post.BlogId.ToString(), considerUow: true);
}
}
}

2
modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionGrantCacheItemInvalidator.cs

@ -31,7 +31,7 @@ public class PermissionGrantCacheItemInvalidator :
using (CurrentTenant.Change(eventData.Entity.TenantId))
{
await Cache.RemoveAsync(cacheKey);
await Cache.RemoveAsync(cacheKey, considerUow: true);
}
}

2
modules/tenant-management/src/Volo.Abp.TenantManagement.Domain/Volo/Abp/TenantManagement/TenantConfigurationCacheItemInvalidator.cs

@ -45,6 +45,6 @@ public class TenantConfigurationCacheItemInvalidator :
TenantConfigurationCacheItem.CalculateCacheKey(id, null),
TenantConfigurationCacheItem.CalculateCacheKey(null, normalizedName),
TenantConfigurationCacheItem.CalculateCacheKey(id, normalizedName),
});
}, considerUow: true);
}
}
Loading…
Cancel
Save