Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
周少峰
8 years ago
Commit
5e96136701906ee9d28cdf756d2c916dcfd5b6bb
1 parent
daf1c877
keywords page cache
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
config/cache.js
config/cache.js
View file @
5e96136
...
...
@@ -2,6 +2,7 @@
const
SECOND
=
1
;
const
MINUTE
=
60
*
SECOND
;
const
DAY
=
86400
*
SECOND
;
const
cachePage
=
{
'/'
:
5
*
MINUTE
,
...
...
@@ -100,7 +101,10 @@ const cachePage = {
// 店铺收藏
'/activity/shopCollect'
:
1
*
MINUTE
,
'/activity/shopNav'
:
30
*
SECOND
'/activity/shopNav'
:
30
*
SECOND
,
// 关键词页面
'/product/search/keyword/:query'
:
7
*
DAY
};
...
...
Please
register
or
login
to post a comment