Perf: Fix caching based on ISignals

GetLocalizedString result was never cached because of a bug in
ISignals implementation: the token was always "IsCurrent == false",
which meants the cache was always out-of-date.

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-07-18 19:34:18 -07:00
parent a6eb5740e7
commit cd57985ba4

View File

@@ -32,6 +32,9 @@ namespace Orchard.Caching {
}
class Token : IVolatileToken {
public Token() {
IsCurrent = true;
}
public bool IsCurrent { get; private set; }
public void Trigger() { IsCurrent = false; }
}