PluginProbe
wpForo Forum / 3.1.6
wpForo Forum v3.1.6
3.1.6 3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 All 138 releases
← All changes | includes/installation.php +8 -7 3.0.83.1.6 View file →
@@ -75,16 +75,17 @@
75 75 wp_cache_flush();
76 76 }
77 77
78 78 #################################################################
79 - // Schedule AI Cache Cleanup Cron ///////////////////////////////
80 - WPF()->ai_client->schedule_cache_cleanup();
79 + // Reconcile AI crons against current connection state.
80 + // Connected tenants get the recurring AI maintenance crons; everyone
81 + // else (free installs that never enabled AI, disconnected accounts) gets
82 + // stale AI events cleared out of wp_options.cron.
83 + WPF()->ai_client->sync_cron_state();
81 84
82 - // Schedule daily subscription sync (updates cached subscription status)
83 - WPF()->ai_client->schedule_daily_subscription_sync();
84 -
85 - // Schedule AI Moderation Log Cleanup Cron
86 - \wpforo\classes\AIContentModeration::get_instance()->schedule_moderation_cleanup();
85 + // Schedule Email Queue Cleanup Cron (non-AI, always on)
86 + WPF()->email_queue->schedule_cleanup_cron();
87 + WPF()->email_queue->reset_stuck_processing();
87 88
88 89 // Note: AI Pending Topics Indexing Cron is scheduled when user
89 90 // enables auto-indexing in the admin settings (disabled by default)
90 91 }