protected function initCompSalt() { if ($this->salt === false) { $this->salt = Cache::getSalt(); } }
public function getCompCachePath($relativePath) { // TODO: global var! global $BX_STATE; if ($BX_STATE === "WA") { $salt = Cache::getSalt(); } else { $salt = "/" . substr(md5($BX_STATE), 0, 3); } $path = "/" . SITE_ID . $relativePath . $salt; return $path; }