Skip to content

Commit

Permalink
Update RazorTemplateCompiler.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jan 24, 2021
1 parent 18c8cb1 commit ceee0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RazorLight/Compilation/RazorTemplateCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private async Task<CompiledTemplateDescriptor> OnCacheMissAsync(string templateK

try
{
CompiledTemplateDescriptor descriptor = CompileAndEmit(item.ProjectItem);
CompiledTemplateDescriptor descriptor = await CompileAndEmitAsync(item.ProjectItem);
descriptor.ExpirationToken = cacheEntryOptions.ExpirationTokens.FirstOrDefault();
taskSource.SetResult(descriptor);
}
Expand Down

0 comments on commit ceee0b6

Please sign in to comment.