打开/dede/contont_lisp.php文件
找到
// 缓存处理惩罚
$sql = "SELECT COUNT(*) AS dd FROM `dede_arctiny` $tinyQuery ";
$cachekey = md5($sql);
$arr = GetCache('listcache', $cachekey);//这是从缓存内里取功效,假如没有缓存,则生成缓存
if (empty($arr))
{
$arr = $dsql->GetOne($sql);
SetCache('listcache', $cachekey, $arr);//配置缓存
}
$totalresult = $arr['dd'];
改成
$sql = "SELECT COUNT(*) AS dd FROM `dede_arctiny` $tinyQuery ";
$arr = $dsql->GetOne($sql);
$totalresult = $arr['dd'];