|
|
@ -44,12 +44,9 @@ var caching = function(args) { |
|
|
|
options = undefined; |
|
|
|
} |
|
|
|
|
|
|
|
if (callbackFiller.queues[key]) { |
|
|
|
callbackFiller.queues[key].push({cb: cb, domain: process.domain}); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
callbackFiller.queues[key] = [{cb: cb, domain: process.domain}]; |
|
|
|
var hasKey = callbackFiller.has(key); |
|
|
|
callbackFiller.add(key, {cb: cb, domain: process.domain}); |
|
|
|
if (hasKey) { return; } |
|
|
|
|
|
|
|
self.store.get(key, options, function(err, result) { |
|
|
|
if (err && (!self.ignoreCacheErrors)) { |
|
|
|