do not use punify() in get_baseurl() due to performance issues
This commit is contained in:
parent
8871f8d0f4
commit
aca719ac74
5
boot.php
5
boot.php
@ -954,7 +954,10 @@ class App {
|
|||||||
&& is_array(self::$config['system'])
|
&& is_array(self::$config['system'])
|
||||||
&& array_key_exists('baseurl',self::$config['system'])
|
&& array_key_exists('baseurl',self::$config['system'])
|
||||||
&& strlen(self::$config['system']['baseurl'])) {
|
&& strlen(self::$config['system']['baseurl'])) {
|
||||||
$url = punify(self::$config['system']['baseurl']);
|
// get_baseurl() is a heavily used function.
|
||||||
|
// Do not use punify() here until we find a library that performs better than what we have now.
|
||||||
|
//$url = punify(self::$config['system']['baseurl']);
|
||||||
|
$url = self::$config['system']['baseurl'];
|
||||||
$url = trim($url,'\\/');
|
$url = trim($url,'\\/');
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user