From 5352d2f40098f0f3b9b122982ad07d0941ecb324 Mon Sep 17 00:00:00 2001 From: 8chan Date: Fri, 24 Apr 2015 17:48:22 -0700 Subject: [PATCH] Defer buildIndex after fastcgi_finish_request --- post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post.php b/post.php index ce6a5f47..adefeaf6 100644 --- a/post.php +++ b/post.php @@ -1015,12 +1015,12 @@ elseif (isset($_POST['post'])) { event('post-after', $post); - buildIndex(); - // We are already done, let's continue our heavy-lifting work in the background (if we run off FastCGI) if (function_exists('fastcgi_finish_request')) { @fastcgi_finish_request(); } + + buildIndex(); if ($post['op']) { rebuildThemes('post-thread', $board['uri']);