Commit cdc23bba by 冷斌

首页

parent d64716fe
...@@ -516,11 +516,12 @@ class Api_Home extends PhalApi_Api ...@@ -516,11 +516,12 @@ class Api_Home extends PhalApi_Api
$uid = checkNull($this->uid); $uid = checkNull($this->uid);
$key = 'getRecommend'; $key = 'getRecommend';
$info = getcaches($key); // $info = getcaches($key);
$info = false;
if (!$info) { if (!$info) {
$domain = new Domain_Home(); $domain = new Domain_Home();
$info = $domain->getRecommend(); $info = $domain->getRecommend();
setcaches($key, $info, 60 * 10); // setcaches($key, $info, 60 * 10);
} }
foreach ($info as $k => $v) { foreach ($info as $k => $v) {
......
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