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:30:59 +0800
Commit
dd0e87666849eeb36a1471507be89916b3a0b4e2
1 parent
63858c67
fix reg match bug
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
config/cache.js
doraemon/middleware/page-cache.js
config/cache.js
View file @
dd0e876
...
...
@@ -14,7 +14,7 @@ const cachePage = {
'/lifestyle'
:
30
*
SECOND
,
// 商品详情页
'/product/\
/pro_([\d]+)_([\d]+)
\/(.*)/'
:
30
*
MINUTE
,
'/product/\
\/pro_([\\d]+)_([\\d]+)\
\/(.*)/'
:
30
*
MINUTE
,
// 逛
'/guang'
:
1
*
MINUTE
,
...
...
doraemon/middleware/page-cache.js
View file @
dd0e876
...
...
@@ -2,7 +2,9 @@
'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