fix #3255 - behavior when moving pages to other parents

This commit is contained in:
sbwalker
2023-09-15 16:23:14 -04:00
parent d155e13399
commit e507023a03
3 changed files with 36 additions and 52 deletions

View File

@ -148,7 +148,7 @@ namespace Oqtane.Repository
private void ManageCache(string EntityName)
{
if (EntityName == EntityNames.Site)
if (EntityName == EntityNames.Site && _tenantManager.GetAlias() != null)
{
_cache.Remove(Constants.HttpContextSiteSettingsKey + _tenantManager.GetAlias().SiteKey);
}