From 052d208783e7e7538e5f644b330b925b36c35b72 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sat, 7 Mar 2015 16:55:01 +0000 Subject: [PATCH] increase latlng to guid cache size --- code/portal_data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/portal_data.js b/code/portal_data.js index 104fb2e5..ff664eca 100644 --- a/code/portal_data.js +++ b/code/portal_data.js @@ -94,8 +94,8 @@ window.findPortalLatLng = function(guid) { (function() { var cache = {}; var cache_level = 0; - var GC_LIMIT = 5000; // run garbage collector when cache has more that 5000 items - var GC_KEEP = 4000; // keep the 4000 most recent items + var GC_LIMIT = 15000; // run garbage collector when cache has more that 5000 items + var GC_KEEP = 10000; // keep the 4000 most recent items window.findPortalGuidByPositionE6 = function(latE6, lngE6) { var item = cache[latE6+","+lngE6];