Jump to content

Prune Old Personal Conversations


Faqole

Recommended Posts

22 hours ago, Faqole said:

so one of the Ipb staff can look into the task settings.

It's an issue in your app:) This is just bad practice: 

foreach( new \IPS\Patterns\ActiveRecordIterator( \IPS\Db::i()->select( '*', 'core_message_topics', $where), 'IPS\core\Messenger\Conversation' ) AS $conversation )
            {

You should use a limit here and iterate only over X items on each task call. Additional to using the limit, you could and should use Task::runUntilTimeout here which will repeatedly call the method and delete any further private messages as long as the PHP process allows this.

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...