Commit 7cf64fa0 authored by liuyuzhen's avatar liuyuzhen

文档

parent f52df17e
File mode changed from 100755 to 100644
......@@ -38,10 +38,6 @@ class ArticleModel extends \DAO\AbstractModel{
return $data;
}
public function findFromCache($where,$field= \Our\NameConst::allField){
}
public function getList($where,$field = \Our\NameConst::allField,$order = null){
$this->setDb($this->dbName);
if(is_array($where)){
......@@ -57,6 +53,16 @@ class ArticleModel extends \DAO\AbstractModel{
return $result;
}
public function delArtcileCache($articleClassId,$articleId){
if($articleClassId){
\Our\RedisHelper::cachedFunction(\Redis\Db10\ArticleRedisModel::getInstance(),array(&$this, 'getList'),array(),array($articleClassId));
}
if($articleId){
\Our\RedisHelper::cachedFunction(\Redis\Db10\ArticleRedisModel::getInstance(),array(&$this, 'find'),array(),array($articleId));
}
}
/**
* 类实例
*/
......
......@@ -19,7 +19,7 @@
<div class="detail">
<p class="title c1 s1"><?php echo $problem['problemTitle'];?></p>
<p class="desc c3 s3">
<?php echo $problem['problemContent'];?>
<?php echo htmlspecialchars_decode($problem['problemContent']);?>
</p>
</div>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment