Last active
March 18, 2021 15:35
-
-
Save salcode/70448316a9901ae6c8ce to your computer and use it in GitHub Desktop.
WordPress oEmbed Cache SQL
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
# List all oembed cached values | |
SELECT * FROM wp_postmeta WHERE meta_key LIKE '_oembed_%'; | |
# Delete all oembed cached values | |
DELETE FROM wp_postmeta WHERE meta_key LIKE '_oembed_%'; | |
# Delete all oembed cached values for Vimeo | |
SELECT * FROM wp_postmeta WHERE meta_key LIKE '_oembed_%' AND meta_value LIKE '%_player.vimeo.com/video_%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment