diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c9677ef..6a06a32d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,6 +31,7 @@ jobs: - name: Cache cache.db uses: actions/cache@v4 with: + save-always: true path: | .cache key: ${{ runner.os }}-v1-${{ steps.date.outputs.year }}-${{ steps.date.outputs.month }}-${{ steps.date.outputs.day }} ${{ steps.date.outputs.hour }}:${{ steps.date.outputs.minute }}:${{ steps.date.outputs.second }} diff --git a/Build/lib/cache-filesystem.ts b/Build/lib/cache-filesystem.ts index dcf616a6..c0387c32 100644 --- a/Build/lib/cache-filesystem.ts +++ b/Build/lib/cache-filesystem.ts @@ -180,7 +180,6 @@ export class Cache { if (peeked === promise) { return promise.then((value) => { - const serializer = 'serializer' in opt ? opt.serializer : identity; this.set(key, serializer(value), ttl); return value; });