Skip to content

Commit

Permalink
fix(request): cache wrong entity
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Jul 15, 2019
1 parent fc017b0 commit df1cf98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function request(url, parser) {
const parsed = hparser.parse(resp.body);
const result = parser(parsed);
if (result) {
cache[url] = parsed;
cache[url] = result;
setTimeout(() => { delete cache[url]; }, 60000);
}
return result;
Expand Down

0 comments on commit df1cf98

Please sign in to comment.