Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
8dd705e4
Commit
8dd705e4
authored
Feb 18, 2017
by
Erick Hitter
Browse files
Delete completed events after unscheduling, to free DB constraints
parent
367f4401
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/class-events-store.php
View file @
8dd705e4
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment