use constant rather than magic string
This commit is contained in:
parent
c14dc67d8a
commit
613f4848da
|
@ -15,7 +15,7 @@ namespace Oqtane.Infrastructure.EventSubscribers
|
|||
|
||||
public void EntityChanged(SyncEvent syncEvent)
|
||||
{
|
||||
if (syncEvent.EntityName == "Site" && syncEvent.Action == SyncEventActions.Refresh)
|
||||
if (syncEvent.EntityName == EntityNames.Site && syncEvent.Action == SyncEventActions.Refresh)
|
||||
{
|
||||
_cache.Remove($"site:{syncEvent.TenantId}:{syncEvent.EntityId}");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user