Perf: Cache for dependencies.xml file was incorrectly setup

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-07-02 21:27:24 -07:00
parent b0842c5529
commit 6ff8f611db

View File

@@ -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();
});
}