Created
December 21, 2022 20:18
-
-
Save barryhughes/36bc2d25ad6ead042eaf04e9fdcc1b0a to your computer and use it in GitHub Desktop.
Delete non-pending actions and their logs (Action Scheduler)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE actions, | |
action_logs | |
FROM wp_actionscheduler_actions AS actions | |
JOIN wp_actionscheduler_logs AS action_logs | |
ON actions.action_id = action_logs.action_id | |
WHERE actions.hook = 'woocommerce_run_update_callback' | |
AND actions.status <> 'pending' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment