Browse Source

Expire product catalog cache entries after 10 minutes.

Andrew Klopper 7 years ago
parent
commit
a0e7519c3f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      BulkPrintingAPI/Controllers/Utils.cs

+ 1 - 1
BulkPrintingAPI/Controllers/Utils.cs

@@ -287,7 +287,7 @@ namespace BulkPrintingAPI.Controllers
287 287
             }
288 288
             return await cache.GetOrCreateAsync(key, entry =>
289 289
                 {
290
-                    // TODO: set expiry time, etc.
290
+                    entry.AbsoluteExpirationRelativeToNow = new TimeSpan(0, 10, 0);
291 291
                     return MAX.Utils.GetProductCatalogueAsync(clientFactory, logger, credentials);
292 292
                 }).ConfigureAwait(false);
293 293
         }