From 003110e6cd03310572dd2a1baf679638dece2f30 Mon Sep 17 00:00:00 2001 From: Heejae Chang Date: Tue, 1 Mar 2016 05:29:43 -0800 Subject: [PATCH] initialize to max value so that there is no conflict when finding oldest cache. --- .../Workspaces/ProjectCacheService.SimpleMRUCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EditorFeatures/Core/Implementation/Workspaces/ProjectCacheService.SimpleMRUCache.cs b/src/EditorFeatures/Core/Implementation/Workspaces/ProjectCacheService.SimpleMRUCache.cs index 34e816e548f..8434247bfc0 100644 --- a/src/EditorFeatures/Core/Implementation/Workspaces/ProjectCacheService.SimpleMRUCache.cs +++ b/src/EditorFeatures/Core/Implementation/Workspaces/ProjectCacheService.SimpleMRUCache.cs @@ -37,7 +37,7 @@ public bool Empty public void Touch(object instance) { var oldIndex = -1; - var oldTime = DateTime.UtcNow; + var oldTime = DateTime.MaxValue; for (var i = 0; i < _nodes.Length; i++) { -- GitLab