processAccount($id); $lastId = $id; } if (function_exists('gc_collect_cycles')) { gc_collect_cycles(); } } return 0; } private function processAccount($id) { $acct = AccountService::get($id, true); if (! $acct) { AccountStatService::removeFromPostCount($id); return; } $profile = Profile::find($id); if (! $profile) { AccountStatService::removeFromPostCount($id); return; } // Reconcile only the status_count column (this queue is fed by // status create/delete events). Shared recompute logic lives in // AccountStatService so it stays consistent with fix:profilecounts. AccountStatService::reconcileProfileCounts($profile, ['statuses']); AccountStatService::removeFromPostCount($id); } }