From f6f147c0dbdbbcff27fc205abf8a417d5e8d2597 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 14 Sep 2011 12:41:54 -0400 Subject: [PATCH] with new URLMapper, cached router takes more memory, time than re-generating --- lib/router.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/router.php b/lib/router.php index 8fbb6eb1f4..606b30e916 100644 --- a/lib/router.php +++ b/lib/router.php @@ -69,19 +69,7 @@ class Router function __construct() { if (empty($this->m)) { - if (!common_config('router', 'cache')) { - $this->m = $this->initialize(); - } else { - $k = self::cacheKey(); - $c = Cache::instance(); - $m = $c->get($k); - if (!empty($m)) { - $this->m = $m; - } else { - $this->m = $this->initialize(); - $c->set($k, $this->m); - } - } + $this->m = $this->initialize(); } }