Caching oembed twice?
-
While debugging a plugin issue with a developer, I noticed that WordPress seems to cache oembed values twice. I’m not sure if I have a problem, or if this is not default behaviour?
When I post a video in a post, WP is adding an oembed_cache postmeta value in the table for the original post ID.
But it is also creating another entry in the table with post-type: oembed-cache. As a new post type entry, it has a new ID.
The cached data in the post type and the post meta appears to be the same, so what is the point of this? Is it normal?
A bit of reading through old threads seems to show me that the post meta way has been around for some time. Then I read through a conversation on github where they discussed adding it as a post type for certain situations. But it wasn’t clear how this was done.
It just seems weird to me that I now have the same data cached in two different paces in the database.
Anyone have any deeper knowledge on this topic?
- The topic ‘Caching oembed twice?’ is closed to new replies.