Title: Post type &#8211; oembed cache
Last modified: June 21, 2020

---

# Post type – oembed cache

 *  Resolved [pocomaxa](https://wordpress.org/support/users/pocomaxa/)
 * (@pocomaxa)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/post-type-oembed-cache/)
 * Hi everyone.
 * About a week ago I found out, that my database is filled with “post_type” = oembed
   cache rows.
 * they consist media data from youtube or instagram, or twitter: I insert a short
   URL from those sites, and this new row transfers it into complete EMBED code.
   I’d like to stop it completely
 * This started to happen a week ago. The only thing I changed a week ago was installing
   YOAST SEO plugin.
 * Is there any way to stop this?
 * ps: I know, how to clear the base of all “oembed cache” rows, I understand, how
   and why they are created. I need to know, how i can stop them appearing. I sure
   have seen topics, where this oembed cache was discussed, but I didn’t see the
   answer there.
 * Thanks in advance.
 * pps: sorry for bad language, not an English language speaker.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/post-type-oembed-cache/#post-13055193)
 * Those entries are not from core WP, nor Yoast, AFAIK. WP normally creates embed
   code on the fly when an oembed URL is encountered. Do you have any sort of optimization
   plugin that could be the cause?
 * If you don’t know the responsible plugin, find it by selectively deactivating
   plugins. You’ll need to come up with a test that reliably invokes the action 
   you wish to prevent. A new post with an oembed URL perhaps? Once you’ve found
   the responsible plugin, seek assistance through its dedicated support channel
   where its devs can better help you.
 *  Thread Starter [pocomaxa](https://wordpress.org/support/users/pocomaxa/)
 * (@pocomaxa)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/post-type-oembed-cache/#post-13058160)
 * Thanks for your answer.
 * Thing is, when I uninstalled YOAST, I’m not having those problems. That’s why
   I wrote it, it was the ONLY thing, that triggered that kind of stuff. When it’s
   gone, everything goes to WP-postmeta
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/post-type-oembed-cache/#post-13059383)
 * I’m unable to replicate your experience on a test site, either with or without
   Yoast. Your best course of action if it’s tied to Yoast being active is to file
   a bug report as had been recommended in your support topic over at the Yoast 
   support forum.
 *  Thread Starter [pocomaxa](https://wordpress.org/support/users/pocomaxa/)
 * (@pocomaxa)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/post-type-oembed-cache/#post-13059561)
 * Thank you – I already messaged there, and they told me, that was unique situation.
 * I was going to totally uninstall YOAST and then reinstall it to try and see.
 * Thought, maybe anyone here experienced that.
 * Thanks again for your attention.
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/post-type-oembed-cache/#post-13072442)
 * Hey, I was finally able to replicate the _oembed meta entries you are experiencing.
   Yoast was not involved. I’m unsure why I previously did not see anything being
   added when inserting oembed links. I just stumbled upon some when checking something
   unrelated. I’ve not tested further, but it appears like you can use the “embed_cache_oembed_types”
   filter to alter behavior. Return an empty array to prevent caching of oembed 
   content, or list only specific post types where caching is allowed.
 * There does not appear to be any ill effects from removing cached data from the
   DB, but I’d make a backup anyway before removal. I did find several redundant
   entries for one frequently edited page. If one were to maintain oembed caching,
   it may be reasonable to clean out old entries once in a while. Wp_cron could 
   be setup to do so automatically.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Post type – oembed cache’ is closed to new replies.

## Tags

 * [autosave](https://wordpress.org/support/topic-tag/autosave/)
 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [database](https://wordpress.org/support/topic-tag/database/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/post-type-oembed-cache/#post-13072442)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
