From 7e92bd2090f0de08c8e59fea06c625d29126f340 Mon Sep 17 00:00:00 2001 From: Josh Pigford Date: Tue, 12 Nov 2024 16:20:20 -0600 Subject: [PATCH] Update pages_controller.rb --- app/controllers/pages_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index 6da4696..d2f76db 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -53,8 +53,8 @@ def sitemap # Paginate stocks @stocks = Stock.order(name: :asc) .where.not(mic_code: nil) - .offset((@page - 1) * 45_000) - .limit(45_000) + .offset((@page - 1) * 20_000) + .limit(20_000) respond_to do |format| format.xml @@ -67,7 +67,7 @@ def sitemap # @return [XML] Sitemap index file def sitemap_index @total_stocks = Stock.where.not(mic_code: nil).count - @sitemap_count = (@total_stocks / 45_000.0).ceil # Using 45k to leave room for other URLs + @sitemap_count = (@total_stocks / 20_000.0).ceil # Using 20k to leave room for other URLs respond_to do |format| format.xml