Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/units/helpers/site_helper.php
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
if ($cache) { | if ($cache) { | ||||
$cache = unserialize($cache); | $cache = unserialize($cache); | ||||
} | } | ||||
else { | else { | ||||
$sql = 'SELECT * | $sql = 'SELECT * | ||||
FROM ' . TABLE_PREFIX . 'SiteDomains | FROM ' . TABLE_PREFIX . 'SiteDomains | ||||
WHERE Status = ' . STATUS_ACTIVE . ' | |||||
ORDER BY Priority DESC'; | ORDER BY Priority DESC'; | ||||
$cache = $this->Conn->Query($sql, 'DomainId'); | $cache = $this->Conn->Query($sql, 'DomainId'); | ||||
if ($this->Application->isCachingType(CACHING_TYPE_MEMORY)) { | if ($this->Application->isCachingType(CACHING_TYPE_MEMORY)) { | ||||
$this->Application->setCache('master:domains_parsed', serialize($cache)); | $this->Application->setCache('master:domains_parsed', serialize($cache)); | ||||
} | } | ||||
else { | else { | ||||
$this->Application->setDBCache('domains_parsed', serialize($cache)); | $this->Application->setDBCache('domains_parsed', serialize($cache)); | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |