git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit f6f147c0 authored by Evan Prodromou's avatar Evan Prodromou

with new URLMapper, cached router takes more memory, time than re-generating

parent a4240db4
......@@ -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();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment