@millionleaves I actually have pretty loose permissions on those types of folders since I run a WebP Plugin that needs a lot of access to generate the converted files. Bitnami made it pretty easy to run CLI commands, but it took too long so I had to come up with another solution…
The solution that worked better for me was to run some SQL Commands to get rid of all of the excess lines, then ran a database optimization plugin to help clean up the databases when I was done. Here are the commands for those interested:
Delete WooCommerce Admin Importer Scheduled Action Lines:
DELETE FROM wp_posts
WHERE post_type
= ‘scheduled-action’
AND post_title
= ‘wc-admin_import_order’
Delete WooCommerce Admin “Unsnooze Admin Notes” Lines:
DELETE FROM wp_posts
WHERE post_type
= ‘scheduled-action’
AND post_title
= ‘wc_admin_unsnooze_admin_notes’
Delete WooCommerce Admin “Action Scheduler” Comment Logs:
DELETE FROM wp_comments
WHERE comment_author
= ‘ActionScheduler’
AND comment_type
= ‘action_log’
Sorry, the code tag keeps making the SQL selectors highlighted in the code tag and I can’t get it to not do that… Here’s a PasteBin link that should be more helpful.
Hopefully this helps some others that were in the same predicament as I was. It also works a LOT faster than the CLI command which was deleting a line every 5-10 seconds or so… these actions took around 4 minutes to delete over 105,000 useless lines.
-
This reply was modified 5 years, 2 months ago by
brianlovelace. Reason: code tags were messed up
-
This reply was modified 5 years, 2 months ago by
brianlovelace. Reason: code not displaying properly