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
姜枫
2016-10-26 16:39:05 +0800
Commit
2fa67f67e4e9c0df9ddb5e53396115349b3cfb43
1 parent
dd0e8766
test detail page cache 10s
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
config/cache.js
doraemon/middleware/page-cache.js
config/cache.js
View file @
2fa67f6
...
...
@@ -14,7 +14,7 @@ const cachePage = {
'/lifestyle'
:
30
*
SECOND
,
// 商品详情页
'/product/\\/pro_([\\d]+)_([\\d]+)\\/(.*)/'
:
30
*
MINUTE
,
'/product/\\/pro_([\\d]+)_([\\d]+)\\/(.*)/'
:
10
*
SECOND
,
// 逛
'/guang'
:
1
*
MINUTE
,
...
...
doraemon/middleware/page-cache.js
View file @
2fa67f6
...
...
@@ -2,9 +2,7 @@
'use strict'
;
const
path
=
require
(
'path'
);
const
_
=
require
(
'lodash'
);
const
cachePage
=
require
(
'../../config/cache'
);
const
md5
=
require
(
'md5'
);
module
.
exports
=
()
=>
{
return
(
req
,
res
,
next
)
=>
{
...
...
Please
register
or
login
to post a comment