From: Evan Prodromou Date: Wed, 14 Sep 2011 16:41:54 +0000 (-0400) Subject: with new URLMapper, cached router takes more memory, time than re-generating X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f6f147c0dbdbbcff27fc205abf8a417d5e8d2597;p=quix0rs-gnu-social.git with new URLMapper, cached router takes more memory, time than re-generating --- 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(); } }