public function getCustom(SelectQuery $query)
 {
     try {
         return parent::getCustom($query, Cache::EXPIRES_FOREVER);
     } catch (CachedObjectNotFoundException $e) {
         throw $e;
     } catch (ObjectNotFoundException $e) {
         $this->cacheByQuery($query, Cache::NOT_FOUND);
         throw $e;
     }
 }
Esempio n. 2
0
 public function getCustom(SelectQuery $query)
 {
     return parent::getCustom($query, Cache::DO_NOT_CACHE);
 }