|
@ -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); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|