浏览代码

extended cache time

Pablo Barrera Yaksic 7 月之前
父节点
当前提交
0293ee72ea
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/sources/sismologiacl/index.ts

+ 1 - 1
src/sources/sismologiacl/index.ts

@@ -65,7 +65,7 @@ export default class SismologiaCL {
         console.log(`\n${this._name} | Sending`, message);
 
         await this._mastodonClient.v1.statuses.create({ status: message, mediaIds });
-        await this._redisClient.store(report.link, date, { EX: 60 * 60 * 24 }); // EX: 24 hrs expiration
+        await this._redisClient.store(report.link, date, { EX: 60 * 60 * 168 }); // EX: 1 week
         totalPublished++;
       }
       console.log(`${this._name} | Published ${totalPublished} new reports`);