Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56440, comment 1


Ignore:
Timestamp:
08/25/2022 04:29:27 PM (23 months ago)
Author:
eceleste
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56440, comment 1

    initial v1  
    1 I wonder, since these oembed cached values are designed to time out, why are we not using transients to keep the cached oembed more universally?
     1It appears that there is an alternative to post_meta that is invoked when WP_Embed is used without a $post_ID. In those cases, the embed is cached as an "oembed_cache" post_type in the wp_posts table. This seems like what should happen when embeds are included in widget areas.
     2
     3Maybe one approach would be to have the embed block never pass along the post ID to WP_Embed, which would force all these cached items into the posts table? Or at a minimum, to not include the post ID when it is being used anywhere outside of post_content?