コード例 #1
0
ファイル: RoleUser.php プロジェクト: bitweaver/users
 /**
  * Determines if a user object is cacheable. Out of paranoia, admin's are never cached.
  * @return boolean if object can be cached
  */
 public function isCacheableObject()
 {
     global $gBitSystem;
     return parent::isCacheableObject() && (!$this->isAdmin() || $gBitSystem->isLive());
     // Do not cache admin object for live sites per paranoia
 }