mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 19:44:02 +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 {
|
||||
public Token() {
|
||||
IsCurrent = true;
|
||||
}
|
||||
public bool IsCurrent { get; private set; }
|
||||
public void Trigger() { IsCurrent = false; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user