Skip to content

Commit 663ab14

Browse files
authored
Merge pull request #10 from openscholar/revert-9-13043-404-issue
Revert "404 value is stored in cache after software release is created."
2 parents 4e23af5 + 7946e16 commit 663ab14

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Routing/PurlRouteProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ public function getRouteCollectionForRequest(Request $request) {
163163
'query' => $query_parameters,
164164
'routes' => $routes,
165165
];
166-
if ($routes->getResources()) {
167-
$this->cache->set($cid, $cache_value, CacheBackendInterface::CACHE_PERMANENT, ['route_match']);
168-
}
166+
$this->cache->set($cid, $cache_value, CacheBackendInterface::CACHE_PERMANENT, ['route_match']);
169167
return $routes;
170168
}
171169
}

0 commit comments

Comments
 (0)