From 2bb4c78551d495b5236df2d049e762a71b81e79a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 15 Nov 2023 12:00:57 -0600 Subject: [PATCH] fix: smart neighbor count for next page caching --- src/app/tools/ratings/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tools/ratings/page.tsx b/src/app/tools/ratings/page.tsx index b67e59609..2f477ea9d 100644 --- a/src/app/tools/ratings/page.tsx +++ b/src/app/tools/ratings/page.tsx @@ -220,7 +220,7 @@ export default function Page() { cacheNeighbors( leaderboard[region][season][best.index], - ROWS_PER_PAGE * 3, + 2 * (Math.floor(ROWS_PER_PAGE / 2) + best.distance + ROWS_PER_PAGE), ); } else { const ids = range(