[wp-trac] [WordPress Trac] #56440: Embed blocks in widget areas caching in many posts
WordPress Trac
noreply at wordpress.org
Thu Aug 25 16:01:32 UTC 2022
#56440: Embed blocks in widget areas caching in many posts
--------------------------+-----------------------------
Reporter: eceleste | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: 6.0.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When I am using blocks for my widget areas I can include an oEmbed easily
enough. For example, I might include a video in a sidebar or footer widget
area using the embed Gutenberg block. This is great!
Then I notice that ''every single post'' that a user visits which displays
that widget area as part of its templates will get duplicated post_meta
entries caching the embed. This quickly pollutes the post_meta table with
hundreds of duplicate entries for the same embed on different posts.
These "_oembed_xxx" and "_oembed_time_xxx" entries all have the same
identifier for the "xxx" since they all come from the same embed in the
widget area. Shouldn't these entries be associated with the widget area
instead of the post?
In fact, why are these oembed cache values stored in post_meta at all?
Isn't this the kind of thing that deserves more universal storage in case
the same embed is used on more than one page in any circumstance?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56440>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list