Fix #17: Computer Name Template Cache

Correctly invalidates the Expression Cache when a Computer Name Template
changes.
This commit is contained in:
Gary Sharp
2013-09-09 14:39:49 +10:00
parent d0aea2401b
commit 02b91f1ea4
@@ -221,6 +221,8 @@ namespace Disco.Web.Areas.API.Controllers
deviceProfile.ComputerNameTemplate = ComputerNameTemplate;
dbContext.SaveChanges();
deviceProfile.ComputerNameInvalidateCache();
}
private void UpdateDefaultOrganisationAddress(Disco.Models.Repository.DeviceProfile deviceProfile, string DefaultOrganisationAddress)