limiting amount of tid's being loaded via sitemap

temporary stopgap for load issues, fixing this properly next
@barisusakli
v1.18.x
psychobunny 8 years ago committed by GitHub
parent 2f3aceb7d3
commit cd2aac9d28

@ -27,7 +27,7 @@ sitemap.render = function (callback) {
var numPages; var numPages;
async.waterfall([ async.waterfall([
async.apply(db.getSortedSetRange, 'topics:recent', 0, -1), async.apply(db.getSortedSetRange, 'topics:recent', 0, 1000),
function (tids, next) { function (tids, next) {
privileges.topics.filterTids('read', tids, 0, next); privileges.topics.filterTids('read', tids, 0, next);
}, },

Loading…
Cancel
Save