mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
fix default value of cache maxAge
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = function(app, options = {}) {
|
||||
return value;
|
||||
}
|
||||
},
|
||||
set: async (key, value, maxAge) => {
|
||||
set: async (key, value, maxAge = 24 * 60 * 60) => {
|
||||
if (!value || value === 'undefined') {
|
||||
value = '';
|
||||
}
|
||||
@@ -80,7 +80,7 @@ module.exports = function(app, options = {}) {
|
||||
return routeCache.get(key);
|
||||
}
|
||||
},
|
||||
set: (key, value, maxAge) => {
|
||||
set: (key, value, maxAge = 24 * 60 * 60) => {
|
||||
if (!value || value === 'undefined') {
|
||||
value = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user