Index: openacs-4/packages/notifications/notifications.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/notifications/notifications.info,v diff -u -N -r1.61.2.6 -r1.61.2.7 --- openacs-4/packages/notifications/notifications.info 16 Sep 2021 08:27:39 -0000 1.61.2.6 +++ openacs-4/packages/notifications/notifications.info 14 Apr 2022 13:30:38 -0000 1.61.2.7 @@ -8,7 +8,7 @@ t notifications - + OpenACS Email notifications management 2021-09-15 @@ -17,7 +17,7 @@ 3 #notifications.Notifications# - + @@ -28,6 +28,7 @@ + Index: openacs-4/packages/notifications/tcl/sweep-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/notifications/tcl/sweep-init.tcl,v diff -u -N -r1.6 -r1.6.2.1 --- openacs-4/packages/notifications/tcl/sweep-init.tcl 7 Aug 2017 23:48:13 -0000 1.6 +++ openacs-4/packages/notifications/tcl/sweep-init.tcl 14 Apr 2022 13:30:38 -0000 1.6.2.1 @@ -8,17 +8,18 @@ } -# DRB: The cleanup sweep interval should be made a parameter someday ... +set cleanupInterval [parameter::get \ + -package_id [apm_package_id_from_key notifications] \ + -parameter CleanupSweepInterval -default 900] +ad_schedule_proc -thread t $cleanupInterval notification::sweep::cleanup_notifications -ad_schedule_proc -thread t 900 notification::sweep::cleanup_notifications - foreach interval [notification::get_all_intervals] { set n_seconds [lindex $interval 2] if {$n_seconds > 0} { set batched_p 1 } else { set batched_p 0 - } + } # Send weekly and daily notifications at defined times rather than a week after # the server was started up, etc etc. Hourly, instant, and exotic custom @@ -32,7 +33,7 @@ ad_schedule_proc -thread t $n_seconds notification::sweep::sweep_notifications -interval_id [lindex $interval 1] -batched_p $batched_p } else { ad_schedule_proc -thread t 60 notification::sweep::sweep_notifications -interval_id [lindex $interval 1] -batched_p $batched_p - } + } } # Local variables: