Skip to content

Commit

Permalink
Merge ; commit 'c519aecedef3d2bc9ce48e42d98849e9b3dbe228' ~api fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NoodleOfDeath committed Mar 10, 2024
2 parents 487996e + c519aec commit 4da07d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export class Summary extends Post<SummaryAttributes, SummaryCreationAttributes>
offset,
].join(':');

if (queryKey === 'top_stories' && !forceCache) {
if (/^top_stories/.test(queryKey) && !forceCache) {
const cache = await Cache.fromKey(cacheKey);
if (cache && cache.expiresSoon === false) {
try {
Expand Down

0 comments on commit 4da07d5

Please sign in to comment.