Browse Source

extended cache time

Pablo Barrera Yaksic 7 months ago
parent
commit
0293ee72ea
1 changed files with 1 additions and 1 deletions
  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`);