Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
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
b0098b7c14d825b662c07f739c72148986b6d8bf
1 parent
331f2c79
so cache
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
config/cache.js
config/cache.js
View file @
b0098b7
...
...
@@ -3,6 +3,7 @@
const
SECOND
=
1
;
const
MINUTE
=
60
*
SECOND
;
const
DAY
=
86400
*
SECOND
;
const
cachePage
=
{
...
...
@@ -57,7 +58,8 @@ const cachePage = {
'/brands/'
:
5
*
MINUTE
,
'/brands/plusstar'
:
5
*
MINUTE
,
'/^\\/special\\/(\\d+)_(.*)\\.html$/'
:
5
*
MINUTE
'/^\\/special\\/(\\d+)_(.*)\\.html$/'
:
5
*
MINUTE
,
'/\\/product\\/search\\/keyword(.*)/'
:
7
*
DAY
};
...
...
Please
register
or
login
to post a comment