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;