mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-02-25 08:56:17 +00:00
Removing the timestamp check on cache so that hopefully the builds will take less time.
This commit is contained in:
parent
ba923d05b7
commit
54e27a349b
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -107,4 +107,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: site-pdfs
|
name: site-pdfs
|
||||||
path: |
|
path: |
|
||||||
dist/**.pdf
|
**.pdf
|
||||||
|
@ -15,8 +15,8 @@ const REV_MANIFEST = 'rev-manifest.json';
|
|||||||
|
|
||||||
module.exports = exports = class Manifest {
|
module.exports = exports = class Manifest {
|
||||||
|
|
||||||
constructor ({ time = true, inputRev = true, prod = false, writeCount = 100, writeInterval = 10000 }) {
|
constructor ({ /* time = true, */ inputRev = true, prod = false, writeCount = 100, writeInterval = 10000 }) {
|
||||||
this.compareBy = { time, inputRev };
|
this.compareBy = { inputRev };
|
||||||
this.manifest = {};
|
this.manifest = {};
|
||||||
this.rev = memoizeSync(revHash);
|
this.rev = memoizeSync(revHash);
|
||||||
this.stat = memoizeAsync((f) =>
|
this.stat = memoizeAsync((f) =>
|
||||||
@ -264,7 +264,7 @@ module.exports = exports = class Manifest {
|
|||||||
|
|
||||||
|
|
||||||
async save () {
|
async save () {
|
||||||
const revManifest = this.isProd && await fs.readJson(resolve(REV_MANIFEST))
|
const revManifest = false && this.isProd && await fs.readJson(resolve(REV_MANIFEST))
|
||||||
.catch(() => ({}))
|
.catch(() => ({}))
|
||||||
.then((old) => ({ ...old, ...this.revManifest }));
|
.then((old) => ({ ...old, ...this.revManifest }));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user