Luke F
Well-known member
I have had this running for days and it's still nowhere near done. Often it just doesn't run any more when I run the deferred jobs. Sometimes it pops up and just continues. I think maybe the job doesn't finish and somewhere the system sort of forgets about it for a while and then remembers.
Is there anything you can do to optimise the recount so that it takes a reasonable amount of time? With 300,000 members and 20 million posts?
In library/Dark/PostRating/Deferred/PostCache.php, try raising the PER_PAGE constant to 100000 or so (basically as high as possible without resulting in timeouts). However note you would need to cancel and restart the deferred task for this to be changed.
Getting this error
Code:Server Error Log Error Info ErrorException: Fatal Error: Call to undefined method XfAddOns_Blogs_Override_Model_Post::getPagedPostsPR() - library/Dark/PostRating/Deferred/PostCache.php:18 Generated By: Brent, Yesterday at 6:02 AM Stack Trace #0 [internal function]: XenForo_Application::handleFatalError() #1 {main} Request State array(3) { ["url"] => string(66) "https://www.aspiescentral.com/admin.php?add-ons/PostRating/upgrade" ["_GET"] => array(1) { ["add-ons/PostRating/upgrade"] => string(0) "" } ["_POST"] => array(3) { ["server_file"] => string(0) "" ["_xfConfirm"] => string(1) "1" ["_xfToken"] => string(8) "********" } }
Make sure the PHP files are correctly uploaded before applying the xml upgrade




