Jump to content

Community

Prune Old Personal Conversations


Recommended Posts

1 hour ago, Loren said:

The task does not seem to be running on it's own. I waited three days and it never ran - so I ran it manually.

That is strange. Can you post a screenshot of the plugin 's settings and taks page?

Edited by Faqole
Link to post
Share on other sites
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 post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy