mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
removed timing #1654
This commit is contained in:
@@ -137,11 +137,9 @@ function getModerators(req, res, next) {
|
||||
var templatsListingCache = [];
|
||||
|
||||
function getTemplatesListing(req, res, next) {
|
||||
var st = process.hrtime();
|
||||
//if (templatsListingCache.length) {
|
||||
// process.profile('with cache', st);
|
||||
// return res.json(templatsListingCache);
|
||||
// }
|
||||
if (templatsListingCache.length) {
|
||||
return res.json(templatsListingCache);
|
||||
}
|
||||
|
||||
async.parallel({
|
||||
views: function(next) {
|
||||
@@ -163,7 +161,6 @@ function getTemplatesListing(req, res, next) {
|
||||
|
||||
data = data.concat(results.extended);
|
||||
templatsListingCache = data;
|
||||
process.profile('without cache', st);
|
||||
res.json(data);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user