Skip to content

Commit 36e2e7e

Browse files
authored
Add option to configure cache file path (#4503)
1 parent 66110bf commit 36e2e7e

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ DB_LIST_FOREIGN_KEYS=false
111111
# Lychee supports both Redis and file caching.
112112
# To use Redis, set CACHE_DRIVER to redis and configure the Redis connection.
113113
CACHE_DRIVER=file
114+
# CACHE_FILE_PATH=storage/framework/cache/data
114115
REDIS_HOST=127.0.0.1
115116
REDIS_PASSWORD=null
116117
REDIS_PORT=6379

config/cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
'file' => [
5454
'driver' => 'file',
55-
'path' => storage_path('framework/cache/data'),
55+
'path' => env('CACHE_FILE_PATH', storage_path('framework/cache/data')),
5656
],
5757

5858
'memcached' => [

routes/web_v2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
|
2828
*/
2929

30-
Route::middleware(['rss_feed_meta'])->group(function () {
30+
Route::middleware(['rss_feed_meta'])->group(function (): void {
3131
Route::feeds();
3232
});
3333

0 commit comments

Comments
 (0)