Skip to content

Commit

Permalink
increase retention time
Browse files Browse the repository at this point in the history
  • Loading branch information
xan105 committed Apr 25, 2022
1 parent 4f62f6f commit f621761
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/parser/steam.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ module.exports.getGameData = async (cfg) => {

let result;

if (await ffs.existsAndIsYoungerThan(filePath,{timeUnit: 'M', time: 1})) {
if (await ffs.existsAndIsYoungerThan(filePath,{timeUnit: 'M', time: 6})) {
result = JSON.parse(await ffs.readFile(filePath));
} else {
if (cfg.key) {
Expand Down
2 changes: 1 addition & 1 deletion app/parser/uplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports.getGameData = async (appid,lang) => {

let schema;

if (await ffs.existsAndIsYoungerThan(cacheFile,{timeUnit: 'M', time: 1})) {
if (await ffs.existsAndIsYoungerThan(cacheFile,{timeUnit: 'M', time: 6})) {
schema = JSON.parse(await ffs.readFile(cacheFile));
} else {
try {
Expand Down
2 changes: 1 addition & 1 deletion service/watchdog/steam.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports.loadSteamData = async (appID, lang, key) => {
let filePath = path.join(`${cache}`,`${appID}.db`);
let result;

if (await fs.existsAndIsYoungerThan(filePath,{timeUnit: 'M', time: 1})) {
if (await fs.existsAndIsYoungerThan(filePath,{timeUnit: 'M', time: 6})) {
result = JSON.parse(await fs.readFile(filePath));
} else {
if (key) {
Expand Down

0 comments on commit f621761

Please sign in to comment.