Merged in fix/SW-2945-cache-timings-for-resolve-entry (pull request #2264)
Fix/SW-2945 cache timings for resolve entry * fix: cache resolveentry() harder and revalidate on publish instead * logging: use debug logging for requests and add logging when tll is invalid Approved-by: Linus Flood
This commit is contained in:
@@ -119,6 +119,11 @@ export async function POST(request: NextRequest) {
|
||||
revalidateTag(contentEntryTag)
|
||||
await cacheClient.deleteKey(contentEntryTag, { fuzzy: true })
|
||||
|
||||
if (entry.url) {
|
||||
console.info(`Revalidating url: ${entry.url}`)
|
||||
await cacheClient.deleteKey(entry.url, { fuzzy: true })
|
||||
}
|
||||
|
||||
if (entry.breadcrumbs) {
|
||||
const breadcrumbsRefsTag = generateRefsResponseTag(
|
||||
entryLocale,
|
||||
|
||||
Reference in New Issue
Block a user