diff --git a/library/think/Route.php b/library/think/Route.php index 96e47895..2cc4a333 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -1496,7 +1496,7 @@ class Route if (is_array($cache)) { list($key, $expire) = $cache; } else { - $key = $pathinfo; + $key = str_replace('|', '/', $pathinfo); $expire = $cache; } $request->cache($key, $expire);