(sha)
| 550 | var cacheImagesDeleted = []; |
| 551 | |
| 552 | async function _deleteInCache(sha) |
| 553 | { |
| 554 | const cachePath = p.join(cacheFolder, sha+'.jpg'); |
| 555 | |
| 556 | if(data[sha]) |
| 557 | delete data[sha]; |
| 558 | |
| 559 | if(fs.existsSync(cachePath)) |
| 560 | { |
| 561 | fs.unlinkSync(cachePath); |
| 562 | |
| 563 | cacheImagesDeleted[sha] = cacheImagesDeleted[sha] ? cacheImagesDeleted[sha] + 1 : 1; |
| 564 | } |
| 565 | |
| 566 | return; |
| 567 | } |
| 568 | |
| 569 | async function deleteInCache(path) |
| 570 | { |