Skip to content

Commit

Permalink
fix(acuc): cache for 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
mogery committed Feb 27, 2025
1 parent b72e21a commit 44bf592
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/api/src/controllers/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ export async function setCachedACUC(
throw signal.error;
}

// Cache for 10 minutes. This means that changing subscription tier could have
// a maximum of 10 minutes of a delay. - mogery
await setValue(cacheKeyACUC, JSON.stringify(acuc), 600, true);
// Cache for 1 hour. - mogery
await setValue(cacheKeyACUC, JSON.stringify(acuc), 3600, true);
});
} catch (error) {
logger.error(`Error updating cached ACUC ${cacheKeyACUC}: ${error}`);
Expand Down

0 comments on commit 44bf592

Please sign in to comment.