PHPCMS广告导致广告统计表文件过大的解决方案

前端之家收集整理的这篇文章主要介绍了PHPCMS广告导致广告统计表文件过大的解决方案前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

PHPCMS广告导致广告统计文件过大的解决方

adsincludeads_place.class.PHP
function show($placeid) 块

注释掉 $this->db->query("INSERT INTO ".DB_PRE."ads_stat (`adsid`,`username`,`ip`,`referer`,`clicktime`,`type`) VALUES ('$ads[adsid]','$_username','$ip','$this->referer','$time','0')");


$this->db->query("INSERT INTO ".DB_PRE."ads_stat (`adsid`,'0')");

这样就会只统计点击的 表也不会大了
我采用的就是这个方法,值得推广 :hehe
官方可以考虑新版本中后台加上“是否统计展示”

猜你在找的Dedecms相关文章