mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-26 06:23:35 -04:00
[cache] fix invalidation
This commit is contained in:
parent
5e042fdfd1
commit
5f4c299381
@ -26,7 +26,9 @@ export class CacheObject {
|
||||
}
|
||||
|
||||
async invalidate() {
|
||||
fs.unlinkSync(this.path);
|
||||
if (fs.existsSync(this.path)) {
|
||||
fs.unlinkSync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user