Navigation Menu

Skip to content

Commit

Permalink
refs #10778 use static
Browse files Browse the repository at this point in the history
  • Loading branch information
steinkel committed Mar 1, 2018
1 parent da91a62 commit 243211b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Routing/Middleware/RoutingMiddleware.php
Expand Up @@ -89,9 +89,9 @@ protected function buildRouteCollection()
{
$isRouterCacheEnabled = Configure::read('Router.cache');
if (Cache::enabled() && $isRouterCacheEnabled) {
$routesCacheConfig = Configure::read('Router.cacheConfig', self::DEFAULT_ROUTER_CACHE_CONFIG);
$routesCacheConfig = Configure::read('Router.cacheConfig', static::DEFAULT_ROUTER_CACHE_CONFIG);

return Cache::remember(self::ROUTE_COLLECTION_CACHE_KEY, function () {
return Cache::remember(static::ROUTE_COLLECTION_CACHE_KEY, function () {

return $this->prepareRouteCollection();
}, $routesCacheConfig);
Expand Down

0 comments on commit 243211b

Please sign in to comment.