Skip to content

Commit

Permalink
Merge 3a761d7 into 5179a6a
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Dec 18, 2019
2 parents 5179a6a + 3a761d7 commit 010b8eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/plugins/helper/fragment_cache.js
Expand Up @@ -9,8 +9,9 @@ module.exports = ctx => {
return function fragmentCache(id, fn) {
if (this.cache && cache[id] != null) return cache[id];

cache[id] = fn();
const result = fn();

cache[id] = result;
return result;
};
};

0 comments on commit 010b8eb

Please sign in to comment.