XenForo_Search_DataHandler_Abstract::_insertIntoIndex()

Daniel Hood

Well-known member
I'm working on making a data handler and depending on certain data in one of the content parameters, I want to trigger a deferred method. I've noticed that for some reason when I have XenForo_Application::defer() called from within this function, it stops the content from being saved.

I know that it isn't causing a fatal error and that's the problem because the deferred method is still getting triggered and the search index table has a row for the content but the content doesn't exist in the table it should.

When I remove the call to XenForo_Application::defer(), everything works as it should except my deferred file obviously isn't being called.

Does anyone know why XenForo_Application::defer is interferring with the datawriter of the initial content?
 
Top Bottom