mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +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,
|
return _cacheManager.Get(PersistencePath,
|
||||||
ctx => {
|
ctx => {
|
||||||
_appDataFolder.CreateDirectory(BasePath);
|
_appDataFolder.CreateDirectory(BasePath);
|
||||||
|
|
||||||
ctx.Monitor(_appDataFolder.WhenPathChanges(ctx.Key));
|
ctx.Monitor(_appDataFolder.WhenPathChanges(ctx.Key));
|
||||||
|
|
||||||
|
_writeThroughToken.IsCurrent = true;
|
||||||
ctx.Monitor(_writeThroughToken);
|
ctx.Monitor(_writeThroughToken);
|
||||||
|
|
||||||
_appDataFolder.CreateDirectory(BasePath);
|
|
||||||
return ReadDependencies(ctx.Key).ToList();
|
return ReadDependencies(ctx.Key).ToList();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user