Browse Source
Set `considerUow` when clearing the cache.
pull/19671/head
maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
3 changed files with
3 additions and
3 deletions
-
modules/blogging/src/Volo.Blogging.Domain/Volo/Blogging/Posts/PostCacheInvalidator.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionGrantCacheItemInvalidator.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.Domain/Volo/Abp/TenantManagement/TenantConfigurationCacheItemInvalidator.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); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -31,7 +31,7 @@ public class PermissionGrantCacheItemInvalidator : |
|
|
|
|
|
|
|
using (CurrentTenant.Change(eventData.Entity.TenantId)) |
|
|
|
{ |
|
|
|
await Cache.RemoveAsync(cacheKey); |
|
|
|
await Cache.RemoveAsync(cacheKey, considerUow: true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -45,6 +45,6 @@ public class TenantConfigurationCacheItemInvalidator : |
|
|
|
TenantConfigurationCacheItem.CalculateCacheKey(id, null), |
|
|
|
TenantConfigurationCacheItem.CalculateCacheKey(null, normalizedName), |
|
|
|
TenantConfigurationCacheItem.CalculateCacheKey(id, normalizedName), |
|
|
|
}); |
|
|
|
}, considerUow: true); |
|
|
|
} |
|
|
|
} |