Skip to content

Commit 4909d7b

Browse files
committed
Forcing cache refresh when retrieving function information in FunctionsManager
1 parent 2e1f44e commit 4909d7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/WebJobs.Script.WebHost/Management/WebFunctionsManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ await functionMetadata
164164
public async Task<(bool, FunctionMetadataResponse)> TryGetFunction(string name, HttpRequest request)
165165
{
166166
var hostOptions = _applicationHostOptions.CurrentValue.ToHostOptions();
167-
var functionMetadata = _functionMetadataProvider.GetFunctionMetadata(false).FirstOrDefault(metadata => metadata.Name == name);
167+
var functionMetadata = _functionMetadataProvider.GetFunctionMetadata(true)
168+
.FirstOrDefault(metadata => metadata.Name == name);
169+
168170
if (functionMetadata != null)
169171
{
170172
string routePrefix = await GetRoutePrefix(hostOptions.RootScriptPath);

0 commit comments

Comments
 (0)