Skip to content

Commit 027d3f5

Browse files
committed
fix: Includes::get disable cache
1 parent e321ac7 commit 027d3f5

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/Support/Includes.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ public static function through(string $type, callable $callable)
2525

2626
public static function get(Request $request): array
2727
{
28-
$prefix = implode('.', self::$stack);
29-
return self::cache("get:$prefix", static fn() => array_keys(
30-
Arr::get(self::parse($request->input('include', '')), $prefix ?: null, [])
28+
return array_keys(Arr::get(
29+
self::parse($request->input('include', '')),
30+
implode('.', self::$stack) ?: null,
31+
[]
3132
));
3233
}
3334

tests/TestCase.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,4 @@
99
class TestCase extends BaseTestCase
1010
{
1111
use RefreshDatabase;
12-
13-
public function setUp(): void
14-
{
15-
parent::setUp();
16-
Includes::flush();
17-
}
1812
}

0 commit comments

Comments
 (0)