Fix issue with NuCache knowing the web project

This commit is contained in:
Bjarke Berg
2020-02-20 09:05:42 +01:00
parent 46a68d1b86
commit bbe9aa1848
4 changed files with 42 additions and 32 deletions

View File

@@ -364,7 +364,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
public override bool EnsureEnvironment(out IEnumerable<string> errors)
{
// must have app_data and be able to write files into it
var ok = FilePermissionHelper.TryCreateDirectory(GetLocalFilesPath(), _ioHelper);
var ok = FilePermissionDirectoryHelper.TryCreateDirectory(GetLocalFilesPath(), _ioHelper);
errors = ok ? Enumerable.Empty<string>() : new[] { "NuCache local files." };
return ok;
}