I’m using Yii2.
After every request to an action form browser, I like to post process some things, like writing statistic data to db. But the user should not wait until those post processing-task are finish.
Is there a way in Yii2 to run some post processing steps (“in background”), after the output of an action (like rendered view or JSON) was send to the client?
In PHP world one way to do this is setting ignore_user_abort to true, but I have no idea, where to place/inject the post processing steps so that there is fired after the data was send to the user.