ping.php performance: caching baseurl

This commit is contained in:
Hypolite Petovan 2016-10-28 05:51:39 -04:00
parent 5783f3b32d
commit 301fea8684

View file

@ -787,6 +787,7 @@ class App {
if (!is_object($this))
return(self::$a->get_baseurl($ssl));
if (!$this->baseurl) {
$scheme = $this->scheme;
if((x($this->config,'system')) && (x($this->config['system'],'ssl_policy'))) {
@ -808,6 +809,7 @@ class App {
$this->hostname = get_config('config','hostname');
$this->baseurl = $scheme . "://" . $this->hostname . ((isset($this->path) && strlen($this->path)) ? '/' . $this->path : '' );
}
return $this->baseurl;
}