Skip to content
OSULZER.AT
Code1 min read· updated August 9, 2022

Delete the WordPress oEmbed Cache

WordPress caches embedded content automatically, including faulty output. Here is how to reset the oEmbed cache directly in the database.

When you use the embed feature of WordPress to link external or internal content, WordPress caches that content automatically. If there is a problem with the target page at the time the content is linked, WordPress naturally stores that faulty output as well. There is no button to reset this internal cache. Instead, you have to go directly into the database.

Via the command line or alternatively phpMyAdmin, you can use the following query to reset the oEmbed cache.

DELETE FROM wp_postmeta WHERE meta_key LIKE '%_oembed_%';

If you use plugins or custom developments with meta fields that have “_oembed_” in their name, those will be deleted as well. That is highly unlikely, but you should still make a database backup before running the command above.

PHP Freelancer

Prefer to have it done for you?

Customizations, plugins, and integrations - cleanly implemented, €120/h plus VAT.

See the PHP freelancer

New project?

Contact.

Tell me briefly about your project - I'll get back to you personally.

Your data is used solely to handle your inquiry. More in the privacy policy.