was using Cache::get() and ::set() wrong
This commit is contained in:
parent
0d99a01d74
commit
af31767b63
@ -128,12 +128,13 @@ class Router
|
|||||||
{
|
{
|
||||||
if (empty($this->m)) {
|
if (empty($this->m)) {
|
||||||
$k = self::cacheKey();
|
$k = self::cacheKey();
|
||||||
$m = Cache::get($k);
|
$c = Cache::instance();
|
||||||
|
$m = $c->get($k);
|
||||||
if (!empty($m)) {
|
if (!empty($m)) {
|
||||||
$this->m = $m;
|
$this->m = $m;
|
||||||
} else {
|
} else {
|
||||||
$this->m = $this->initialize();
|
$this->m = $this->initialize();
|
||||||
Cache::set($k, $this->m);
|
$c->set($k, $this->m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user