Skip to content

Commit 7b85e24

Browse files
committed
Allow cache overriding
1 parent 6152ca7 commit 7b85e24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/RouteBundle.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public static function createFromRoute(string $uri): self
5656
}
5757
}
5858

59-
if (isset($key)) {
59+
// Re-check the config in case one of the included items requested cache exemption
60+
if ($config->useCache && isset($key)) {
6061
cache()->save($key, $bundle);
6162
}
6263

0 commit comments

Comments
 (0)