diff --git a/src/Framework/Framework/Compilation/DotvvmViewCompilationService.cs b/src/Framework/Framework/Compilation/DotvvmViewCompilationService.cs index 6d633f2c8..318a6d132 100644 --- a/src/Framework/Framework/Compilation/DotvvmViewCompilationService.cs +++ b/src/Framework/Framework/Compilation/DotvvmViewCompilationService.cs @@ -184,8 +184,7 @@ public bool BuildView(DotHtmlFileInfo file, bool forceRecompile, out DotHtmlFile try { if (forceRecompile) - // TODO: next major version - add method to interface - (controlBuilderFactory as DefaultControlBuilderFactory)?.InvalidateCache(file.VirtualPath); + controlBuilderFactory.InvalidateCache(file.VirtualPath); var pageBuilder = controlBuilderFactory.GetControlBuilder(file.VirtualPath); diff --git a/src/Framework/Framework/Compilation/IControlBuilderFactory.cs b/src/Framework/Framework/Compilation/IControlBuilderFactory.cs index 7fed27c91..6b9c658b4 100644 --- a/src/Framework/Framework/Compilation/IControlBuilderFactory.cs +++ b/src/Framework/Framework/Compilation/IControlBuilderFactory.cs @@ -6,7 +6,6 @@ namespace DotVVM.Framework.Compilation public interface IControlBuilderFactory { (ControlBuilderDescriptor descriptor, Lazy builder) GetControlBuilder(string virtualPath); - // TODO: next major version - // void InvalidateCache(string virtualPath); + void InvalidateCache(string virtualPath); } }