mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
优化Url类的路由缓存
This commit is contained in:
@@ -258,6 +258,10 @@ class Url
|
|||||||
// 生成路由映射并缓存
|
// 生成路由映射并缓存
|
||||||
private static function getRouteAlias()
|
private static function getRouteAlias()
|
||||||
{
|
{
|
||||||
|
static $item = [];
|
||||||
|
if (!empty($item)) {
|
||||||
|
return $item;
|
||||||
|
}
|
||||||
if ($item = Cache::get('think_route_map')) {
|
if ($item = Cache::get('think_route_map')) {
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user