query("update {$dbtbpre}enewsclass set fclast='$time' where classid in (".$cids.")");
}
}
else
{
$empire->query("update {$dbtbpre}enewsclass set fclast='$time'");
}
}
elseif($dopage==3)//内容
{
if(!$tid)
{
printerror("ErrorUrl","history.go(-1)");
}
$tbr=$empire->fetch1("select tid,tbname from {$dbtbpre}enewstable where tid='$tid' limit 1");
if(!$tbr['tbname'])
{
printerror("ErrorUrl","history.go(-1)");
}
$empire->query("update {$dbtbpre}ecms_".$tbr['tbname']." set lastdotime='$time'");
}
elseif($dopage==4)//标题分类
{
if($chall)
{
$ttids=eArrayReturnInids($ttid);
if($ttids)
{
$empire->query("update {$dbtbpre}enewsinfotype set fclast='$time' where typeid in (".$ttids.")");
}
}
else
{
$empire->query("update {$dbtbpre}enewsinfotype set fclast='$time'");
}
}
elseif($dopage==5)//TAGS
{
$empire->query("update {$dbtbpre}enewstags set fclast='$time'");
}
else//首页
{
$empire->query("update {$dbtbpre}enewspublic_fc set fclastindex='$time' limit 1");
}
insert_dolog("");//操作日志
printerror("ChangePageCacheSuccess",$from);
}
$enews=$_POST['enews'];
if(empty($enews))
{$enews=$_GET['enews'];}
if($enews)
{
hCheckEcmsRHash();
@set_time_limit(0);
include('../../data/dbcache/class.php');
}
if($enews=="ChangePageCache")//批量更新缓存
{
ChangePageCache($_POST,$logininid,$loginin);
}
$dopage=(int)$_GET['dopage'];
//栏目
$fcfile="../../data/fc/ListEnews.php";
$class="";
if(!file_exists($fcfile))
{$class=ShowClass_AddClass("",0,0,"|-",0,0);}
//刷新表
$retable="";
$selecttable="";
$i=0;
$tsql=$empire->query("select tid,tbname,tname from {$dbtbpre}enewstable where intb=0 order by tid");
while($tr=$empire->fetch($tsql))
{
$i++;
if($i%4==0)
{
$br="
";
}
else
{
$br="";
}
$retable.="$tr[tname] ".$br;
$selecttable.="";
}
//标题分类
$tts='';
$infotypesql=$empire->query("select typeid,tname from {$dbtbpre}enewsinfotype order by typeid");
while($infotyper=$empire->fetch($infotypesql))
{
$tts.="";
}
?>
位置:批量更新动态页面缓存 |