From 02b91f1ea4184f43ca86607401044c5f19fa8827 Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Mon, 9 Sep 2013 14:39:49 +1000 Subject: [PATCH] Fix #17: Computer Name Template Cache Correctly invalidates the Expression Cache when a Computer Name Template changes. --- Disco.Web/Areas/API/Controllers/DeviceProfileController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Disco.Web/Areas/API/Controllers/DeviceProfileController.cs b/Disco.Web/Areas/API/Controllers/DeviceProfileController.cs index a82abcbe..9fb5250a 100644 --- a/Disco.Web/Areas/API/Controllers/DeviceProfileController.cs +++ b/Disco.Web/Areas/API/Controllers/DeviceProfileController.cs @@ -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)