Merge branch 'master' into staging
This commit is contained in:
@@ -785,6 +785,7 @@ const main = async (): Promise<void> => {
|
|||||||
if (topMakers) {
|
if (topMakers) {
|
||||||
cacheHitCounter.add(1, {
|
cacheHitCounter.add(1, {
|
||||||
miss: false,
|
miss: false,
|
||||||
|
path: req.baseUrl + req.path,
|
||||||
});
|
});
|
||||||
res.writeHead(200);
|
res.writeHead(200);
|
||||||
res.end(JSON.stringify(topMakers));
|
res.end(JSON.stringify(topMakers));
|
||||||
@@ -838,6 +839,7 @@ const main = async (): Promise<void> => {
|
|||||||
topMakers = [...topMakersSet];
|
topMakers = [...topMakersSet];
|
||||||
cacheHitCounter.add(1, {
|
cacheHitCounter.add(1, {
|
||||||
miss: true,
|
miss: true,
|
||||||
|
path: req.baseUrl + req.path,
|
||||||
});
|
});
|
||||||
res.writeHead(200);
|
res.writeHead(200);
|
||||||
res.end(JSON.stringify(topMakers));
|
res.end(JSON.stringify(topMakers));
|
||||||
@@ -950,6 +952,7 @@ const main = async (): Promise<void> => {
|
|||||||
if (l2Formatted) {
|
if (l2Formatted) {
|
||||||
cacheHitCounter.add(1, {
|
cacheHitCounter.add(1, {
|
||||||
miss: false,
|
miss: false,
|
||||||
|
path: req.baseUrl + req.path,
|
||||||
});
|
});
|
||||||
res.writeHead(200);
|
res.writeHead(200);
|
||||||
res.end(l2Formatted);
|
res.end(l2Formatted);
|
||||||
@@ -986,6 +989,7 @@ const main = async (): Promise<void> => {
|
|||||||
|
|
||||||
cacheHitCounter.add(1, {
|
cacheHitCounter.add(1, {
|
||||||
miss: true,
|
miss: true,
|
||||||
|
path: req.baseUrl + req.path,
|
||||||
});
|
});
|
||||||
res.writeHead(200);
|
res.writeHead(200);
|
||||||
res.end(JSON.stringify(l2Formatted));
|
res.end(JSON.stringify(l2Formatted));
|
||||||
@@ -1127,6 +1131,7 @@ const main = async (): Promise<void> => {
|
|||||||
if (l2Formatted) {
|
if (l2Formatted) {
|
||||||
cacheHitCounter.add(1, {
|
cacheHitCounter.add(1, {
|
||||||
miss: false,
|
miss: false,
|
||||||
|
path: req.baseUrl + req.path,
|
||||||
});
|
});
|
||||||
return l2Formatted;
|
return l2Formatted;
|
||||||
}
|
}
|
||||||
@@ -1161,6 +1166,7 @@ const main = async (): Promise<void> => {
|
|||||||
}
|
}
|
||||||
cacheHitCounter.add(1, {
|
cacheHitCounter.add(1, {
|
||||||
miss: true,
|
miss: true,
|
||||||
|
path: req.baseUrl + req.path,
|
||||||
});
|
});
|
||||||
return l2Formatted;
|
return l2Formatted;
|
||||||
})
|
})
|
||||||
@@ -1209,6 +1215,7 @@ const main = async (): Promise<void> => {
|
|||||||
) {
|
) {
|
||||||
cacheHitCounter.add(1, {
|
cacheHitCounter.add(1, {
|
||||||
miss: false,
|
miss: false,
|
||||||
|
path: req.baseUrl + req.path,
|
||||||
});
|
});
|
||||||
res.writeHead(200);
|
res.writeHead(200);
|
||||||
res.end(redisL3);
|
res.end(redisL3);
|
||||||
@@ -1216,6 +1223,7 @@ const main = async (): Promise<void> => {
|
|||||||
} else {
|
} else {
|
||||||
cacheHitCounter.add(1, {
|
cacheHitCounter.add(1, {
|
||||||
miss: true,
|
miss: true,
|
||||||
|
path: req.baseUrl + req.path,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user