Skip to content
Permalink
Browse files

refs #10778 use static

  • Loading branch information...
steinkel committed Feb 27, 2018
1 parent da91a62 commit 243211b6ff2f3a11453e43cf9c943cee5e7ea264
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Routing/Middleware/RoutingMiddleware.php
@@ -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);

0 comments on commit 243211b

Please sign in to comment.
You can’t perform that action at this time.