Bugfix: broken oHttp, should use $this->Http()

This commit is contained in:
djmaze 2021-07-14 11:38:05 +02:00
parent 09b3fa3141
commit 5530a85f47

View file

@ -2004,13 +2004,13 @@ class Actions
if (!empty($sKey) && ($bForce || ($this->Config()->Get('cache', 'enable', true) && $this->Config()->Get('cache', 'http', true)))) { if (!empty($sKey) && ($bForce || ($this->Config()->Get('cache', 'enable', true) && $this->Config()->Get('cache', 'http', true)))) {
$iExpires = $this->Config()->Get('cache', 'http_expires', 3600); $iExpires = $this->Config()->Get('cache', 'http_expires', 3600);
if (0 < $iExpires) { if (0 < $iExpires) {
$this->oHttp->ServerUseCache($this->etag($sKey), 1382478804, \time() + $iExpires); $this->Http()->ServerUseCache($this->etag($sKey), 1382478804, \time() + $iExpires);
$bResult = true; $bResult = true;
} }
} }
if (!$bResult) { if (!$bResult) {
$this->oHttp->ServerNoCache(); $this->Http()->ServerNoCache();
} }
return $bResult; return $bResult;