I am looking to calculate how many times people have viewed my users profiles on my site.
I would like to keep a count in my database and to stop the count incrementing when a user refreshes the page. Limit by IP.
I understand that a cache of ip addresses would need to be created and emptied on a daily basis.
Is there any instruction on how to do this. Can anyone talk me through it?
$this->input->ip_address()
to take the user's ip address in the controller$this->db->select_sum("counter")->get("views_table");
and process the result.