打开dede目录中content_list.php 大概在100行左右 $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, $ca
打开dede目录中content_list.php
大概在100行左右
$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'];
将上面代码替换为
$arr = $dsql->GetOne("Select count(*) as dd From `zmb_arctiny` $tinyQuery ");