[RSS Feed/News] Question on sending alerts

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I have an article add-on and I am trying to add a feature to alert all users via XF and Push anytime a new article is posted. The code successfully sends alerts but is unable to finish my 20K+ user count. My article ends up not saving as _postSave never completes. How can I process these alerts more efficiently?

PHP:

Code:
 protected function _postSave()
 {

     if ($this->isInsert())
     {

         $extra = [
             'title' => $this->title,
             'article_id' => $this->article_id...

Read more
Read more about this Feed . . .
 
Status
Not open for further replies.
Back
Top Bottom