forked from GithubBackups/vichan
Defer buildIndex after fastcgi_finish_request
This commit is contained in:
parent
bcb387da43
commit
5352d2f400
4
post.php
4
post.php
@ -1015,12 +1015,12 @@ elseif (isset($_POST['post'])) {
|
|||||||
|
|
||||||
event('post-after', $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)
|
// 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')) {
|
if (function_exists('fastcgi_finish_request')) {
|
||||||
@fastcgi_finish_request();
|
@fastcgi_finish_request();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildIndex();
|
||||||
|
|
||||||
if ($post['op']) {
|
if ($post['op']) {
|
||||||
rebuildThemes('post-thread', $board['uri']);
|
rebuildThemes('post-thread', $board['uri']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user