From 33c33ee69eb347d6cfb96908ed734d7f5e711101 Mon Sep 17 00:00:00 2001 From: maliming Date: Mon, 21 Apr 2025 13:40:29 +0800 Subject: [PATCH] Remove `EntityCreatedEventData` condition to clear the cache. --- .../Volo/Abp/Domain/Entities/Caching/EntityCacheBase.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Caching/EntityCacheBase.cs b/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Caching/EntityCacheBase.cs index f3af7256b4..7cea931c12 100644 --- a/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Caching/EntityCacheBase.cs +++ b/framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Caching/EntityCacheBase.cs @@ -69,11 +69,6 @@ public abstract class EntityCacheBase : public async Task HandleEventAsync(EntityChangedEventData eventData) { - if (eventData is EntityCreatedEventData) - { - return; - } - /* Why we are using double remove: * First Cache.RemoveAsync drops the cache item in a unit of work. * Some other application / thread may read the value from database and put it to the cache again