1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-04 20:08:02 +01:00

Defer buildIndex after fastcgi_finish_request

This commit is contained in:
8chan 2015-04-24 17:48:22 -07:00
parent bcb387da43
commit 5352d2f400

View File

@ -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']);