feat: use contentExpire

This commit is contained in:
DIYgod
2019-05-09 01:23:29 +08:00
parent 075a8d1864
commit a0333fbd7e
140 changed files with 199 additions and 218 deletions

View File

@@ -51,8 +51,8 @@ module.exports = async (ctx) => {
.replace(/更新于:/g, '')
).toUTCString();
ctx.cache.set(description_key, single.description, 60 * 60);
ctx.cache.set(pubDate_key, single.pubDate, 60 * 60);
ctx.cache.set(description_key, single.description);
ctx.cache.set(pubDate_key, single.pubDate);
}
return Promise.resolve(single);