mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
14 lines
353 B
JavaScript
14 lines
353 B
JavaScript
const {
|
|
default: FileSystemCache,
|
|
} = require('next/dist/server/lib/incremental-cache/file-system-cache')
|
|
|
|
module.exports = class IncrementalCacheHandler extends FileSystemCache {
|
|
async set(key, data, ctx) {
|
|
if (ctx.fetchCache) {
|
|
console.log('cache-handler set fetch cache', ctx.fetchUrl)
|
|
}
|
|
|
|
return super.set(key, data, ctx)
|
|
}
|
|
}
|