The update function seems is be updating the database twice instead of once. Try to create a new database field called hits in exp_members and issue this update query. it updates the count by 2 every-time the function is loaded. Why does it update twice. Is this a bug. I’m using EE 2.3.1
return $this->EE->db->query("UPDATE exp_members SET hits = hits+1 WHERE member_id = 1");