Beispiel #1
0
 protected function initCompSalt()
 {
     if ($this->salt === false) {
         $this->salt = Cache::getSalt();
     }
 }
Beispiel #2
0
 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;
 }