From a84231ddca88049a0cefd97640fc52006e0ffe7a Mon Sep 17 00:00:00 2001 From: Jagepard Date: Thu, 18 Dec 2025 10:50:59 +0300 Subject: [PATCH] change cache path --- src/Repository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Repository.php b/src/Repository.php index fbe9cdf..e235a26 100755 --- a/src/Repository.php +++ b/src/Repository.php @@ -487,7 +487,7 @@ public function toggle() */ public function cache(array $params, $cacheTime = null) { - $directory = dirname(__DIR__, 4) . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'database'; + $directory = dirname(__DIR__, 4) . DIRECTORY_SEPARATOR . 'storage' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'database'; $file = "$directory/$params[0].json"; $cacheTime = $cacheTime ?? config('cache.time', 'database'); @@ -520,7 +520,7 @@ public function cache(array $params, $cacheTime = null) */ public function clearCache(string $type = 'database') { - $baseDir = dirname(__DIR__, 4) . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR; + $baseDir = dirname(__DIR__, 4) . DIRECTORY_SEPARATOR . 'storage' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR; if (!in_array($type, ['database', 'view', 'all'])) { return;