Put and move to first
@@ -342,7 +342,7 @@ public class SearchEngine {
DirectedGraph result = stitchedGraphCache.getAndMoveToFirst(identifier);
if (result == null) {
result = dm.mergeWithCHA(identifier);
- stitchedGraphCache.put(identifier, result);
+ stitchedGraphCache.putAndMoveToFirst(identifier, result);
if (stitchedGraphCache.size() > STITCHED_MAX_SIZE) stitchedGraphCache.removeLast();
}
return result;
