if (!($result = $this->cache->load('indexResult'))) {
if (!empty($caretoryid)) {
$where = "caretory_id=$caretoryid";
$result = $this->indexArticle->getAll('content',$where,$page,$this->maxnum);
}else {
$result = $this->indexArticle->getAll('content','',$page,$this->maxnum);
}
$this->cache->save($result,'indexResult');
}
if (!($result = $this->cache->load('indexResult'.$caretoryid))) {
if (!empty($caretoryid)) {
$where = "caretory_id=$caretoryid";
$result = $this->indexArticle->getAll('content',$where,$page,$this->maxnum);
}else {
$result = $this->indexArticle->getAll('content','',$page,$this->maxnum);
}
$this->cache->save($result,'indexResult'.$caretoryid);
}
---dudu