Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
2016-05-05 16:18:35 +0800
Commit
e4790b7c9c6c502c33b9daa6718c61132d5e96c2
1 parent
67fef029
缓存时间统一改成5分钟
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
library/Plugin/DataProcess/CouponFloorProcess.php
yohobuy/m.yohobuy.com/application/models/Index/User.php
library/Plugin/DataProcess/CouponFloorProcess.php
View file @
e4790b7
...
...
@@ -281,7 +281,7 @@ class CouponFloorProcess
'url'
=>
Helpers
::
getUrlBySkc
(
$product
[
'product_id'
],
$goods_id
,
$product
[
'cn_alphabet'
]),
);
}
Cache
::
set
(
$key
,
$data
,
6
00
);
Cache
::
set
(
$key
,
$data
,
3
00
);
}
return
$data
;
}
...
...
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
e4790b7
...
...
@@ -630,7 +630,7 @@ class UserModel
}
// 接口调用正常,数据封装完成, 则设置一级(master)和二级(slave)数据缓存
else
{
Cache
::
set
(
$key
,
$result
,
1800
);
// 缓存30
分钟
Cache
::
set
(
$key
,
$result
,
300
);
// 缓存5
分钟
}
}
...
...
Please
register
or
login
to post a comment