Skip to content

Commit

Permalink
Merge pull request #4547 from sbwalker/dev
Browse files Browse the repository at this point in the history
fix #4545 - Site Settings - UI Component Settings changes not refreshed after saving
  • Loading branch information
sbwalker authored Aug 22, 2024
2 parents 9f0b755 + 430572f commit 437aa45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
Expand Down

0 comments on commit 437aa45

Please # to comment.