Skip to content

Commit dcfde60

Browse files
authored
Bypass cache for exposed routes in debug mode
1 parent e42ed45 commit dcfde60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Controller/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function indexAction(Request $request, $_format)
7777

7878
$cache = new ConfigCache($this->exposedRoutesExtractor->getCachePath($request->getLocale()), $this->debug);
7979

80-
if (!$cache->isFresh()) {
80+
if (!$cache->isFresh() || $this->debug) {
8181
$exposedRoutes = $this->exposedRoutesExtractor->getRoutes();
8282
$serializedRoutes = $this->serializer->serialize($exposedRoutes, 'json');
8383
$cache->write($serializedRoutes, $this->exposedRoutesExtractor->getResources());

0 commit comments

Comments
 (0)