$val) { if ($val['time']<(time()-(60*15))) { // keep cache for 15 minutes unset($cache[$key]); } } update_option('astound_cache',$cache); } function astound_add_to_cache($ip,$reason) { $cache=get_option('astound_cache'); if (empty($cache) || !is_array($cache)) { $cache=array(); } $hit=array(); $hit['time']=time(); $hit['reason']=$reason; $cache[$ip]=$hit; update_option('astound_cache',$cache); } ?>