From c5bb3843aa084ec6c4ebcf5e68b0231f8883b999 Mon Sep 17 00:00:00 2001 From: Jeff Leung Date: Thu, 4 Jan 2024 23:19:01 -0800 Subject: [PATCH] Update sliding window cache timers --- AS1024.GeoFeed/Controllers/GeofeedController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AS1024.GeoFeed/Controllers/GeofeedController.cs b/AS1024.GeoFeed/Controllers/GeofeedController.cs index 1dbe7b7..3bb973d 100644 --- a/AS1024.GeoFeed/Controllers/GeofeedController.cs +++ b/AS1024.GeoFeed/Controllers/GeofeedController.cs @@ -31,7 +31,7 @@ namespace AS1024.GeoFeed.Controllers { feed = await builder.GetGeoFeedData(); var cacheEntryOptions = new MemoryCacheEntryOptions() - .SetAbsoluteExpiration(TimeSpan.FromHours(1)); + .SetSlidingExpiration(TimeSpan.FromMinutes(15)); memoryCache.Set(GeoFeedCacheKey, feed, cacheEntryOptions); }