Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bca4374

Browse files
maxisameneajaho
authored andcommitted
fix(isr): filter urlsOnHold by cacheKey instead of url
1 parent 6dc9756 commit bca4374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/isr/server/src/cache-regeneration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class CacheRegeneration {
6262
// if there are errors, don't add the page to cache
6363
if (errors?.length && this.isrConfig.skipCachingOnHttpError) {
6464
// remove url from urlsOnHold because we want to try to regenerate it again
65-
this.urlsOnHold = this.urlsOnHold.filter((x) => x !== url);
65+
this.urlsOnHold = this.urlsOnHold.filter((x) => x !== cacheKey);
6666
logger.log(
6767
'💥 ERROR: Url: ' + cacheKey + ' was not regenerated!',
6868
errors,

0 commit comments

Comments
 (0)