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:
parent
bcb387da43
commit
5352d2f400
4
post.php
4
post.php
@ -1015,13 +1015,13 @@ 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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user