function countarchiveformcategory($catid) { $cache_id=md5('countarchiveformtype'.$catid); $cache=cache::get($cache_id); if (isset($cache)) $count=$cache; else $count=archive::countarchiveformcategory($catid); if (cache::set($cache_id,$count,60)) ; return $count; }