コード例 #1
0
ファイル: managedcache.php プロジェクト: ASDAFF/open_bx
 public function getCompCachePath($relativePath)
 {
     // TODO: global var!
     global $FX_STATE;
     if ($FX_STATE === "WA") {
         $salt = Cache::getSalt();
     } else {
         $salt = "/" . substr(md5($FX_STATE), 0, 3);
     }
     $path = "/" . SITE_ID . $relativePath . $salt;
     return $path;
 }
コード例 #2
0
ファイル: taggedcache.php プロジェクト: ASDAFF/open_bx
 protected function initCompSalt()
 {
     if ($this->salt === false) {
         $this->salt = Cache::getSalt();
     }
 }