Skip to content

Commit

Permalink
Merge pull request #4 from a28028/master
Browse files Browse the repository at this point in the history
Update FileCache.ts
  • Loading branch information
Kaperskyguru committed Sep 12, 2021
2 parents c6e6af7 + 1f76a0e commit 94735b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engines/FileCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class FileCache implements EngineInterface {

private async isCacheExist(key: string): Promise<Boolean> {
const path = this.path()
return fs.existsSync(path + '/' + this.hashKey(key))
return fs.existsSync(path + '/' + this.hashKey(key) + '.cache')
}

private deleteFIle(key: string): Boolean {
Expand Down

0 comments on commit 94735b9

Please sign in to comment.