From df15d6c6069f8af89bace269c47d02ec4233e723 Mon Sep 17 00:00:00 2001 From: Darren Hurley Date: Wed, 15 Feb 2017 13:17:49 +0000 Subject: [PATCH] Revert "Distinct uuid cache for uuid and products requests" --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index ff1bf3c..f530d7c 100644 --- a/main.js +++ b/main.js @@ -23,7 +23,7 @@ function uuid(){ function products(){ const cachedProducts = cache('products'); - const cachedUUID = cache('uuid-products'); + const cachedUUID = cache('uuid'); if(cachedProducts && cachedUUID){ return Promise.resolve({products:cachedProducts, uuid:cachedUUID}); @@ -32,7 +32,7 @@ function products(){ if(!promises.products){ promises.products = request('/products').then(function(response){ cache('products', response.products); - cache('uuid-products', response.uuid); + cache('uuid', response.uuid); return response; }); }