[wp-trac] [WordPress Trac] #17210: Massive duplication of oEmbed postmeta

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 21 23:44:40 UTC 2011


#17210: Massive duplication of oEmbed postmeta
-------------------------------+------------------------------
 Reporter:  archon810          |       Owner:  Viper007Bond
     Type:  defect (bug)       |      Status:  accepted
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Embeds             |     Version:  3.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by Viper007Bond):

 * keywords:   => reporter-feedback
 * owner:   => Viper007Bond
 * status:  new => accepted


Comment:

 Duplicates is expected -- it's not smart enough to cache cross-post (say
 if you embed the same video in multiple posts).

 However it should only cache to the current post and if it's not, then
 perhaps you are polluting the `$post` global somewhere. Can you reproduce
 this using the default theme?

 By the way -- it's safe to delete all of those rows if you want to. The
 caches will be repopulated on the fly.

 {{{
 DELETE FROM wp_postmeta WHERE meta_key LIKE '_oembed_%'
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17210#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list