mirror of
https://github.com/oqtane/oqtane.framework.git
synced 2025-05-28 15:53:05 +00:00
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…
x
Reference in New Issue
Block a user