Which is the most efficient method for checking if a particular thread_id exists?
Code uses thread_id to build a link but if that thread has been deleted then an error is going to happen, therefore, a thread_id check is necessary.
I'm thinking of starting with this model but is there a better way?
/** @var $threadModel XenForo_Model_Thread */ $threadModel = XenForo_Model::create('XenForo_Model_Thread')->getModelFromCache( 'XenForo_Model_Thread' ); $threads = $threadModel->getThreadsByIds( $thread_ids );
Any suggestions? Thank you.