Skip to content

Commit

Permalink
metaキャッシュ時間を1分に
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Oct 14, 2019
1 parent 2a20707 commit 2ea540a
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 @@ -477,7 +477,7 @@ export default class MiOS extends EventEmitter {
return;
}

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

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

0 comments on commit 2ea540a

Please sign in to comment.