[RSS Feed/News] Schedule a callable to run after a transaction commit

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I've had a couple cases where I've needed to run some callable after a transaction commits which have been super-awkward to fit into XF's code structure as sometimes the hook point to "do stuff" after the transaction just isn't there but I can run my code inside the transaction.

For things like sending moderator alerts or similar, these often should go outside the transaction as they touch xf_user/xf_user_alert rows and can pull in locking for large tables, but need to be queued &...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom