Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Index on save asyncron #5

Open
Flyingmana opened this issue May 19, 2014 · 2 comments
Open

Make Index on save asyncron #5

Flyingmana opened this issue May 19, 2014 · 2 comments

Comments

@Flyingmana
Copy link
Member

thanks to http://www.php.net/manual/en/function.fastcgi-finish-request.php we are able to execute longer running tasks after actually sending the response.

So it would be possible to hook into the controller_front_send_response_after event, "finish" the request and then execute the index events which happened trough the current save of the request.

Possible downsides are problematic error handling.

@Schrank
Copy link
Member

Schrank commented May 19, 2014

I don't think this function is available everywhere!

thanks to
http://www.php.net/manual/en/function.fastcgi-finish-request.php we
are able to execute longer running tasks after actually sending the
response.

So it would be possible to hook into the
controller_front_send_response_after event, "finish" the request
and then execute the index events which happened trough the current
save of the request.

Possible downsides are problematic error handling.


Reply to this email directly or view it on GitHub:
#5

Fabian Blechschmidt
Tel: +49 (0) 30 419 932 55
Handy: +49 (0)176 666 55 256

@SchumacherFM
Copy link
Member

So what? Just use function_exists and provide this nice solution to the store owners who run php-fpm.

I'll have to refactor checkout->saveOrder ... ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants