Julio Franco
Member
Hello guys,
Since we moved to Xenforo over 2 years ago, we've had a full in-house CMS integration between our news comments and Xenforo threads. We love your software and it was the step in the right direction coming from awful vBulletin.
Recently we've struggled with a very slow XF function when we call it from our CMS (see details below). I was hoping to get your assistance.
When we update a news story (and thus send the necessary changes to the respective forum thread), we use the following:
Seems simple enough, but instead of taking milliseconds it's delayed anything between 1-4 seconds.
Otherwise most of XF is very fast or instant in our server. Any idea what could be the culprit?
Since we moved to Xenforo over 2 years ago, we've had a full in-house CMS integration between our news comments and Xenforo threads. We love your software and it was the step in the right direction coming from awful vBulletin.
Recently we've struggled with a very slow XF function when we call it from our CMS (see details below). I was hoping to get your assistance.
When we update a news story (and thus send the necessary changes to the respective forum thread), we use the following:
PHP:
$threadWriter = XenForo_DataWriter::create('XenForo_DataWriter_Discussion_Thread');
$threadWriter->setExistingData( $threadId );
if( $title )
$threadWriter->set('title', $title);
if( $date )
{
$threadWriter->set('post_date', $date );
$threadWriter->set('last_post_date', $date );
}
$threadWriter->save();
Seems simple enough, but instead of taking milliseconds it's delayed anything between 1-4 seconds.
Otherwise most of XF is very fast or instant in our server. Any idea what could be the culprit?