mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
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:
@@ -32,6 +32,9 @@ namespace Orchard.Caching {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Token : IVolatileToken {
|
class Token : IVolatileToken {
|
||||||
|
public Token() {
|
||||||
|
IsCurrent = true;
|
||||||
|
}
|
||||||
public bool IsCurrent { get; private set; }
|
public bool IsCurrent { get; private set; }
|
||||||
public void Trigger() { IsCurrent = false; }
|
public void Trigger() { IsCurrent = false; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user