From 3187db1e9a1da02b0ab04f4777fbb2d5549e93cf Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Fri, 5 Mar 2021 00:40:11 -0500 Subject: [PATCH] Switch gocache to FIFO instead of LRU --- controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/controller.go b/controller/controller.go index d2ebb3a6..036089be 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -26,7 +26,7 @@ const ( ) var ( - cache = gocache.NewCache().WithMaxSize(100).WithEvictionPolicy(gocache.LeastRecentlyUsed) + cache = gocache.NewCache().WithMaxSize(100).WithEvictionPolicy(gocache.FirstInFirstOut) // staticFolder is the path to the location of the static folder from the root path of the project // The only reason this is exposed is to allow running tests from a different path than the root path of the project