GetUseCache() 공개 메소드

Returns true if cache use was enabled
public GetUseCache ( ) : boolean
리턴 boolean
예제 #1
0
 /**
  * Writes the object to cache.
  *
  * @return bool
  *    TRUE on success, FALSE on failure
  */
 public function writeCache()
 {
     if (!DatabaseObject::GetUseCache() || !$this->m_exists) {
         return false;
     }
     $cacheKey = $this->getCacheKey();
     if ($cacheKey === false) {
         return false;
     }
     $cacheObj = CampCache::singleton();
     return $cacheObj->add($cacheKey, $this);
 }