|
I think we can actually remove more code than that. I commented out the following:
// log the pageview
// $pageview = new Pageview;
// $pageview->type='story';
// $pageview->page_id=$link->id;
// $pageview->user_id=$current_user->user_id;
require_once(mnminclude.'check_behind_proxy.php');
// $pageview->user_ip=check_ip_behind_proxy();
// find the last pageview
// $last_visit = $pageview->last_visit();
// if($last_visit != 0){$last_visit = txt_time_diff($pageview->last_visit(), time());}
// $main_smarty->assign('last_visit', $last_visit);
// $pageview->insert();
Just to note: I like removing/commenting out unnecessary code as possible. There is no need to have processes running which will consume CPU cycles if we just want to disable the functionality anyways.
David.
|