Skip to content

Commit

Permalink
v5 cleanup: Add IControlBuilderFactory.InvalidateCache method
Browse files Browse the repository at this point in the history
it has previously only been added to our default implementation for backwards compatibility reasons
  • Loading branch information
exyi committed Dec 20, 2024
1 parent 1fff36f commit 3ff3e6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ namespace DotVVM.Framework.Compilation
public interface IControlBuilderFactory
{
(ControlBuilderDescriptor descriptor, Lazy<IControlBuilder> builder) GetControlBuilder(string virtualPath);
// TODO: next major version
// void InvalidateCache(string virtualPath);
void InvalidateCache(string virtualPath);
}
}

0 comments on commit 3ff3e6f

Please sign in to comment.