mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 23:00:48 +08:00
fix: value of rss TTL tag (#2297)
* fix value of rss TTL tag * fix test algorithm for rss ttl tag
This commit is contained in:
@@ -51,10 +51,12 @@ module.exports = async (ctx, next) => {
|
||||
});
|
||||
}
|
||||
|
||||
const routeTtl = (config.cache.routeExpire / 60) | 0;
|
||||
|
||||
const data = {
|
||||
lastBuildDate: new Date().toUTCString(),
|
||||
updated: new Date().toISOString(),
|
||||
ttl: config.cache.routeExpire,
|
||||
ttl: routeTtl,
|
||||
...ctx.state.data,
|
||||
};
|
||||
if (template) {
|
||||
|
||||
Reference in New Issue
Block a user