예제 #1
0
 public function findById($id, $cacheLifeTime = 0, $tags = array())
 {
     $id = intval($id);
     if (empty($this->cachedItems[$id])) {
         $this->cachedItems[$id] = parent::findById($id, $cacheLifeTime, $tags);
     }
     return $this->cachedItems[$id];
 }
예제 #2
0
 public function findByIdWithoutCache($id)
 {
     $id = intval($id);
     return parent::findById($id);
 }