Browse Source

Consider nonoko in building after posting, improve comments

pull/68/head
discomrade 4 months ago
parent
commit
dd7737eee2
  1. 31
      post.php

31
post.php

@ -1440,28 +1440,25 @@ function handle_post(){
if ($config['try_smarter'])
$build_pages = range(1, $config['max_pages']);
}
event('post-after', $post);
event('post-after', $post);
// If this is a new thread or the poster is returning to the index, let's build it before they redirect
if ($post['op'] || !$noko)
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();
}
if (!$post['op'] && $noko)
buildIndex();
// We are already done and post is visible to others, let's continue our heavy-lifting work in the background (if we run off FastCGI)
if (function_exists('fastcgi_finish_request')) {
@fastcgi_finish_request();
}
if ($post['op']) {
rebuildThemes('post-thread', $board['uri']);
} else {
event('post-after', $post);
// We are already done and post is visible to others, 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();
rebuildThemes('post', $board['uri']);
}
}

Loading…
Cancel
Save