Skip to content

Commit

Permalink
port haraka/Haraka#1738 to haraka-config (#12)
Browse files Browse the repository at this point in the history
* port haraka/Haraka#1738 to haraka-config

* update changelog
  • Loading branch information
msimerson committed Jan 9, 2017
1 parent c8d2bb3 commit fa3221a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@

# 1.0.9 - 2017-__-__

* config cache fix (see haraka/Haraka#1738)

# 1.0.8 - 2017-01-02

* version bump, lint updates & sync
* lint fixes

# 1.0.7 - 2016-11-17

* update tests for appveyor (Windows) compatibility #9
Expand Down
5 changes: 2 additions & 3 deletions configfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,9 @@ cfreader.read_config = function(name, type, cb, options) {
if (!process.env.WITHOUT_CONFIG_CACHE) {
var cache_key = cfreader.get_cache_key(name, options);
// console.log('\tcache_key: ' + cache_key);
if (cfreader._config_cache[cache_key]) {
var cached = cfreader._config_cache[cache_key];
if (cfreader._config_cache[cache_key] !== undefined) {
// console.log('\t' + name + ' is cached');
return cached;
return cfreader._config_cache[cache_key];
}
}

Expand Down

0 comments on commit fa3221a

Please sign in to comment.