Commit 8dd705e4 authored by Erick Hitter's avatar Erick Hitter
Browse files

Delete completed events after unscheduling, to free DB constraints

parent 367f4401
......@@ -223,6 +223,9 @@ class Events_Store extends Singleton {
$this->convert_option( $new_value );
} elseif ( $this->is_unscheduling() ) {
$this->unschedule_job( $new_value, $this->option_before_unscheduling );
// Free "completed" events due to DB locks
$this->purge_completed_events();
} else {
$this->force_update( $new_value );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment