[cache] fix invalidation
This commit is contained in:
parent
497208bb4b
commit
ba5df7e400
|
@ -26,7 +26,9 @@ export class CacheObject {
|
|||
}
|
||||
|
||||
async invalidate() {
|
||||
fs.unlinkSync(this.path);
|
||||
if (fs.existsSync(this.path)) {
|
||||
fs.unlinkSync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue