Do not cache non-existent files forever (#11906)

This commit is contained in:
Devon Govett 2020-08-04 13:07:25 -07:00 committed by GitHub
parent a4ebe29b3f
commit c29138fd72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,6 @@ export function makeStaticFileCache<T>(
const cached = cache.invalidate(() => fileMtime(filepath)); const cached = cache.invalidate(() => fileMtime(filepath));
if (cached === null) { if (cached === null) {
cache.forever();
return null; return null;
} }