Skip to content

Commit

Permalink
Merge pull request #1897 from riganti/v5-cleanp-ControlBuilderFactory…
Browse files Browse the repository at this point in the history
…Invalidate

v5 cleanup: Add IControlBuilderFactory.InvalidateCache method
  • Loading branch information
tomasherceg authored Jan 24, 2025
2 parents 5dc349e + 3ff3e6f commit 7972151
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 7972151

Please sign in to comment.