Esempio n. 1
0
 public function getBrokerEndDate($brokerid, $p_arrBroker = '')
 {
     $key = Util_MemCacheKey::get_broker_enddate($brokerid);
     APF::get_instance()->benchmark_begin(__CLASS__ . " getbrokerenddate ");
     $memcache = APF_Cache_Factory::get_instance()->get_memcache();
     $memcache->delete($key);
     $list = $memcache->get($key);
     if (!$list) {
         $time = Util_MemCacheTime::get_broker_enddate();
         $list = parent::getBrokerEndDate($brokerid);
         $memcache->add($key, $list, 0, $time);
     }
     APF::get_instance()->benchmark_end(__CLASS__ . " getbrokerenddate ");
     return $list;
 }