|
@@ -126,7 +126,16 @@ class Journal extends Core
|
|
$where['type'] = 4;
|
|
$where['type'] = 4;
|
|
$where['source'] = '1,2';
|
|
$where['source'] = '1,2';
|
|
$where['cate_id'] = $cate['id'];
|
|
$where['cate_id'] = $cate['id'];
|
|
- $data = Dever::db('act/subscribe')->getMyAll($where);
|
|
|
|
|
|
+
|
|
|
|
+ $key = 'my_subscribe_' . $where['uid'] . '_' . $cate['id'];
|
|
|
|
+ $data = Dever::cache($key);
|
|
|
|
+ if (!$data) {
|
|
|
|
+ $data = Dever::db('act/subscribe')->getMyAll($where);
|
|
|
|
+ if ($data) {
|
|
|
|
+ Dever::cache($key, $data, 900);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
if ($data) {
|
|
if ($data) {
|
|
foreach ($data as $k => $v) {
|
|
foreach ($data as $k => $v) {
|
|
$data[$k] = $this->info($v);
|
|
$data[$k] = $this->info($v);
|