Removing the timestamp check on cache so that hopefully the builds will take less time.

This commit is contained in:
Jocelyn Badgley (Twipped) 2022-06-24 10:36:58 -07:00
parent ba923d05b7
commit 54e27a349b
2 changed files with 4 additions and 4 deletions

View File

@ -107,4 +107,4 @@ jobs:
with:
name: site-pdfs
path: |
dist/**.pdf
**.pdf

View File

@ -15,8 +15,8 @@ const REV_MANIFEST = 'rev-manifest.json';
module.exports = exports = class Manifest {
constructor ({ time = true, inputRev = true, prod = false, writeCount = 100, writeInterval = 10000 }) {
this.compareBy = { time, inputRev };
constructor ({ /* time = true, */ inputRev = true, prod = false, writeCount = 100, writeInterval = 10000 }) {
this.compareBy = { inputRev };
this.manifest = {};
this.rev = memoizeSync(revHash);
this.stat = memoizeAsync((f) =>
@ -264,7 +264,7 @@ module.exports = exports = class Manifest {
async save () {
const revManifest = this.isProd && await fs.readJson(resolve(REV_MANIFEST))
const revManifest = false && this.isProd && await fs.readJson(resolve(REV_MANIFEST))
.catch(() => ({}))
.then((old) => ({ ...old, ...this.revManifest }));