How wordfence runs scan in background?

176 Views Asked by At

Normally I see that whenever we send request to PHP it processes the request and sends the response and process ends here. But Wordfence (Wordpress Plugin) performs scan continuously even if we refresh the webpage.

I also want to build similar functionality to perform long running batch operations.

Can anybody explain how Wordfence continuously runs its process even after page refresh?

1

There are 1 best solutions below

0
Future King On

Thanks @ChrisHaas

ignore_user_abort() function really worked for me. I was looking something like this. Thank you very much. Thank You! Thank You!