fix #4545 - Site Settings - UI Component Settings changes not refreshed after saving
This commit is contained in:
parent
66acb55a57
commit
430572fb32
|
@ -17,7 +17,7 @@ namespace Oqtane.Infrastructure.EventSubscribers
|
|||
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}");
|
||||
|
|
Loading…
Reference in New Issue
Block a user