From be802ec134ca4081e93f9c2278defc01aef0e601 Mon Sep 17 00:00:00 2001 From: hossein raja <40133548+a28028@users.noreply.github.com> Date: Sat, 2 Oct 2021 13:01:32 +0330 Subject: [PATCH] Update FileCache.ts fix delete cache file deleteFIle always return file --- src/Engines/FileCache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Engines/FileCache.ts b/src/Engines/FileCache.ts index f19d509..f190d04 100644 --- a/src/Engines/FileCache.ts +++ b/src/Engines/FileCache.ts @@ -121,7 +121,7 @@ class FileCache implements EngineInterface { try { if (this.isCacheExist(key)) { const path = this.path() - fs.unlinkSync(path + '/' + this.hashKey(key)) + fs.unlinkSync(path + '/' + this.hashKey(key) + '.cache') return true } return false