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}");