diff --git a/lib/index.js b/lib/index.js index a3253b5..6f86cb9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -107,11 +107,11 @@ export function addToRedis(){ if(method !== 'OPTIONS'){ if(!request[requestKey]){ throw new Error(`lux-redis-cache: No lux-redis-cache options found on - the request object. Make sure you added getFromRedis in the right + the request object. Make sure you added getFromRedis in the right place!`); } - if(request[requestKey].enabled){ + if(request[requestKey].enabled === 'true'){ const redis = request[requestKey].redisInstance; const cacheEngineInstance = request[requestKey].cacheEngineInstance; const expiresIn = request[requestKey].expiresIn;