Created
October 11, 2015 17:52
-
-
Save AlexanderPoellmann/f1c367980cd5c7551f63 to your computer and use it in GitHub Desktop.
Clean up your database by deleting ALL (!) woocommerce sessions and ALL (!) transients. Use with caution!
This file contains hidden or 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 FROM `wp_options` WHERE `option_name` LIKE ('%\wc_session\_%') | |
DELETE FROM `wp_options` WHERE `option_name` LIKE ('%\_transient\_%') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should probably add an underscore after the first backslash. Otherwise it'll trigger on any word (
\w
)...