Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/site_helper.php
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
else { | else { | ||||
$sql = 'SELECT * | $sql = 'SELECT * | ||||
FROM ' . TABLE_PREFIX . 'SiteDomains | FROM ' . TABLE_PREFIX . 'SiteDomains | ||||
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), 0); | ||||
} | } | ||||
else { | else { | ||||
$this->Application->setDBCache('domains_parsed', serialize($cache)); | $this->Application->setDBCache('domains_parsed', serialize($cache), 0); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
return $cache; | return $cache; | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |