File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 2929 */
3030 'enabled ' => false ,
3131
32+ /*
33+ |--------------------------------------------------------------------------
34+ | Cache path
35+ |--------------------------------------------------------------------------
36+ |
37+ | Path for read/write cache keys file
38+ |
39+ */
40+ 'path ' => storage_path ('framework/cache/ ' ),
41+
3242 /*
3343 |--------------------------------------------------------------------------
3444 | Cache Minutes
Original file line number Diff line number Diff line change 22
33namespace CodeOfDigital \CacheRepository \Helpers ;
44
5+ use Illuminate \Support \Facades \Config ;
6+
57class CacheKeys
68{
79 protected static string $ storeFile = 'repository-cache-keys.json ' ;
@@ -39,7 +41,7 @@ public static function loadKeys(): array
3941
4042 public static function getFileKeys (): string
4143 {
42- return storage_path ('framework/cache/ ' . self ::$ storeFile) ;
44+ return Config:: get ( ' repository.cache.path ' , storage_path ('framework/cache/ ' )) . self ::$ storeFile ;
4345 }
4446
4547 public static function storeKeys (): bool |int
You can’t perform that action at this time.
0 commit comments