[wp-trac] [WordPress Trac] #14759: Improve the way oEmbed deals with caching

WordPress Trac noreply at wordpress.org
Tue Nov 26 13:50:10 UTC 2013


#14759: Improve the way oEmbed deals with caching
--------------------------+-----------------------------
 Reporter:  Viper007Bond  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Embeds        |     Version:  3.0.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------------

Comment (by sanchothefat):

 Replying to [comment:30 peterbooker]:
 > Would it be unreasonable to store an expiry time inside the post_meta,
 and use that to judge expiry instead of deleting all the oembed meta each
 update?
 >
 > This would maintain the advantages of storage in post_meta and gain more
 control over when to refresh the stored content?

 I think the issue is that if you call `WP_oEmbed` directly using
 `wp_oembed_get()` there is no caching - it can be used outside the context
 of posts so should ideally be cached at a lower level than `WP_Embed`
 which is used on post save.

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


More information about the wp-trac mailing list