• Resolved pocomaxa

    (@pocomaxa)


    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

    (@bcworkz)

    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

    (@pocomaxa)

    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

    (@bcworkz)

    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

    (@pocomaxa)

    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

    (@bcworkz)

    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.