]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
with new URLMapper, cached router takes more memory, time than re-generating
authorEvan Prodromou <evan@status.net>
Wed, 14 Sep 2011 16:41:54 +0000 (12:41 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 14 Sep 2011 16:41:54 +0000 (12:41 -0400)
lib/router.php

index 8fbb6eb1f43ff7ae4478e6b7dc686e5ddf6f5f5a..606b30e91640dc53930183a1c0f2225351b0c4ef 100644 (file)
@@ -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();
         }
     }