...
|
...
|
@@ -38,6 +38,10 @@ module.exports = (limiter, policy) => { |
|
|
let pageKey = urlJoin(appPath, route.toString()); // route may be a regexp
|
|
|
let pageIncr = PAGES[pageKey] || 0;
|
|
|
|
|
|
if (/^\/p([\d]+)/.test(req.path)) {
|
|
|
pageIncr = 5;
|
|
|
}
|
|
|
|
|
|
if (pageIncr > 0) {
|
|
|
cache.incrAsync(key, pageIncr);
|
|
|
}
|
...
|
...
|
|