mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Perf: Cache for dependencies.xml file was incorrectly setup
--HG-- branch : dev
This commit is contained in:
@@ -37,11 +37,11 @@ namespace Orchard.FileSystems.Dependencies {
|
||||
return _cacheManager.Get(PersistencePath,
|
||||
ctx => {
|
||||
_appDataFolder.CreateDirectory(BasePath);
|
||||
|
||||
ctx.Monitor(_appDataFolder.WhenPathChanges(ctx.Key));
|
||||
|
||||
_writeThroughToken.IsCurrent = true;
|
||||
ctx.Monitor(_writeThroughToken);
|
||||
|
||||
_appDataFolder.CreateDirectory(BasePath);
|
||||
return ReadDependencies(ctx.Key).ToList();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user