Exemplo n.º 1
0
 public function getStoreBrokersEasyInfo($storeid)
 {
     $key = "store_brokers_easy_info_{$storeid}";
     APF::get_instance()->benchmark_begin(__CLASS__ . " getStoreBrokersEasyInfo ");
     $memcache = APF_Cache_Factory::get_instance()->get_memcache();
     $list = $memcache->get($key);
     if (!$list) {
         $time = 3600;
         $list = parent::getStoreBrokersEasyInfo($storeid);
         $memcache->add($key, $list, 0, $time);
     }
     APF::get_instance()->benchmark_end(__CLASS__ . " getStoreBrokersEasyInfo ");
     return $list;
 }