Skip to content

Commit 08ad139

Browse files
author
Joseph Lokahi Podwys
committed
Fixing a bug that wrote background refresh functions to all configured caches.
1 parent 14c9081 commit 08ad139

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cacheService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function cacheService(cacheServiceConfig, cacheModules) {
138138
var cache = self.caches[i];
139139
var ref = (i == self.caches.length - 1) ? refresh : null;
140140
var func = (i == 0) ? cb : noop;
141-
cache.set(key, value, expiration, refresh, func);
141+
cache.set(key, value, expiration, ref, func);
142142
}
143143
}
144144

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cache-service",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "A tiered caching solution for node.",
55
"main": "cacheService.js",
66
"dependencies": {

0 commit comments

Comments
 (0)