diff --git a/AS1024.GeoFeed/GeoFeedBuilder/GeoFeedBuilder.cs b/AS1024.GeoFeed/GeoFeedBuilder/PreloadGeoFeed.cs similarity index 95% rename from AS1024.GeoFeed/GeoFeedBuilder/GeoFeedBuilder.cs rename to AS1024.GeoFeed/GeoFeedBuilder/PreloadGeoFeed.cs index 53f0fc5..520cc46 100644 --- a/AS1024.GeoFeed/GeoFeedBuilder/GeoFeedBuilder.cs +++ b/AS1024.GeoFeed/GeoFeedBuilder/PreloadGeoFeed.cs @@ -24,7 +24,7 @@ namespace AS1024.GeoFeed.GeoFeedBuilder { logger.LogInformation("Preloading GeoFeed data in memory..."); var feed = await provider.GetGeoFeedData(); - var cacheEntryOptions = new MemoryCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromHours(1)); + var cacheEntryOptions = new MemoryCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromMinutes(45)); memoryCache.Set(GeoFeedCacheKey, feed, cacheEntryOptions); }