From 430572fb32d2587ba72aaac64c1ac423eef10e56 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Thu, 22 Aug 2024 08:08:55 -0400 Subject: [PATCH] fix #4545 - Site Settings - UI Component Settings changes not refreshed after saving --- .../EventSubscribers/CacheInvalidationEventSubscriber.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Server/Infrastructure/EventSubscribers/CacheInvalidationEventSubscriber.cs b/Oqtane.Server/Infrastructure/EventSubscribers/CacheInvalidationEventSubscriber.cs index f34634394..21f74ae6c 100644 --- a/Oqtane.Server/Infrastructure/EventSubscribers/CacheInvalidationEventSubscriber.cs +++ b/Oqtane.Server/Infrastructure/EventSubscribers/CacheInvalidationEventSubscriber.cs @@ -17,7 +17,7 @@ public CacheInvalidationEventSubscriber(IMemoryCache cache) public void EntityChanged(SyncEvent syncEvent) { // when site entities change (ie. site, pages, modules, etc...) a site refresh event is raised and the site cache item needs to be refreshed - if (syncEvent.EntityName == EntityNames.Site && syncEvent.Action == SyncEventActions.Refresh) + if (syncEvent.EntityName == EntityNames.Site && (syncEvent.Action == SyncEventActions.Refresh || syncEvent.Action == SyncEventActions.Reload)) { _cache.Remove($"site:{syncEvent.TenantId}:{syncEvent.EntityId}"); _cache.Remove($"modules:{syncEvent.TenantId}:{syncEvent.EntityId}");