ping.php performance: caching baseurl
This commit is contained in:
parent
5783f3b32d
commit
301fea8684
1 changed files with 19 additions and 17 deletions
2
boot.php
2
boot.php
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue