Skip to content

Commit

Permalink
meta情報のキャッシュ時間を5分に延ばす
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Apr 12, 2019
1 parent 48f10de commit fd13d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/app/mios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export default class MiOS extends EventEmitter {
return;
}

const expire = 1000 * 60; // 1min
const expire = 1000 * 60 * 5; // 5min

// forceが有効, meta情報を保持していない or 期限切れ
if (force || this.meta == null || Date.now() - this.meta.chachedAt.getTime() > expire) {
Expand Down

0 comments on commit fd13d24

Please sign in to comment.