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
hf
2015-11-01 19:05:39 +0800
Commit
81bfeb18e0a015cccc9dac04235f6704bc46f92f
1 parent
50da6c55
modify search list cache 10min to 30min
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
library/LibModels/Wap/Product/NewsaleData.php
yohobuy/m.yohobuy.com/application/models/Product/Search.php
library/LibModels/Wap/Product/NewsaleData.php
View file @
81bfeb1
...
...
@@ -112,7 +112,7 @@ class NewsaleData
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
get
(
Yohobuy
::
API_URL
,
$param
,
600
);
// 缓存1
0分钟
return
Yohobuy
::
get
(
Yohobuy
::
API_URL
,
$param
,
1800
);
// 缓存3
0分钟
}
/**
...
...
yohobuy/m.yohobuy.com/application/models/Product/Search.php
View file @
81bfeb1
...
...
@@ -55,7 +55,7 @@ class SearchModel
}
// 接口调用正常,数据封装完成, 则设置一级(master)和二级(slave)数据缓存
else
{
Cache
::
set
(
$key
,
$result
,
600
);
// 缓存1
0分钟
Cache
::
set
(
$key
,
$result
,
1800
);
// 缓存3
0分钟
}
}
...
...
Please
register
or
login
to post a comment