Commit Graph

4 Commits

Author SHA1 Message Date
Niklas Mischkulnig 8330e4c4cd test: Improve test cache handler implementations (#98098)
- Some of them were not forwarding `getExpiration` or `softTags` to
`defaultCacheHandler`
- use-cache-cross-deployment was ignoring softTags and expiration. (This
patch was written by Sol)

---------

Co-authored-by: Hendrik Liebau <mail@hendrik-liebau.de>
2026-08-31 13:59:14 +02:00
JJ Kasper e598a4f976 Add new updateTag API and new signature for revalidateTag (#83822) 2025-10-09 14:03:01 -07:00
Wyatt Johnson d4fcf46d93 fix: mark the shared cache controls as external so it's memory is shared (#80588)
This PR refactors the default cache handler and shared cache controls to
be marked as external modules, improving build optimization and module
boundaries.

### Changes

- **Marked shared cache controls as external**: Renamed
`shared-cache-controls.ts` to `shared-cache-controls.external.ts` and
updated all imports
- **Refactored default cache handler**: Moved the implementation to
`default.external.ts` and converted the original file to a re-export
- **Updated import paths**: Fixed the import path in
`incremental-cache/index.ts` to reference the external module

### Details

The changes ensure that both the default cache handler and shared cache
controls are properly marked as external modules. This follows Next.js
conventions for modules that should be treated as external dependencies
during the build process.

The refactoring maintains backward compatibility by using re-exports in
the original locations while moving the actual implementations to
`.external.ts` files.
2025-06-19 14:49:35 -04:00
Hendrik Liebau 3cd122d8f3 Scope runInCleanSnapshot to Work Store (#78930) 2025-05-07 23:28:09 +02:00