Browse Source

not trying to pass ttl into cache.set() in getAndPassUp()

feature/specify-what-to-cache
Bryan Donovan 10 years ago
parent
commit
13d1eb16d6
  1. 3
      lib/multi_caching.js

3
lib/multi_caching.js

@ -68,7 +68,8 @@ var multiCaching = function(caches) {
if (result !== undefined && index) { if (result !== undefined && index) {
var cachesToUpdate = caches.slice(0, index); var cachesToUpdate = caches.slice(0, index);
async.each(cachesToUpdate, function(cache, next) { async.each(cachesToUpdate, function(cache, next) {
cache.set(key, result, result.ttl, next); // We rely on the cache module's default TTL
cache.set(key, result, next);
}); });
} }
}); });

Loading…
Cancel
Save