Periodically purge orphaned scheduled task records.

This commit is contained in:
wn_
2025-05-04 12:57:58 +00:00
parent 4ce5e6e8e1
commit 868385442a
2 changed files with 33 additions and 2 deletions
+6
View File
@@ -1717,6 +1717,12 @@ class RSSUtils {
$scheduler = Scheduler::getInstance();
$scheduler->add_scheduled_task('purge_orphaned_scheduled_tasks', '@weekly',
function() use ($scheduler) {
return $scheduler->purge_orphaned_tasks();
}
);
$scheduler->add_scheduled_task('purge_orphans', '@daily',
function() {
Article::_purge_orphans();