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

WordPress Trac noreply at wordpress.org
Tue Nov 26 12:00:39 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 rmccue):

 Replying to [comment:25 sanchothefat]:
 > I recently managed to brick a server by incorrectly assuming that
 caching would occur in the `WP_oEmbed` class. Confessional aside I make
 use of `wp_oembed_get()` fairly often and have had to implement my own
 transient based caches similar to Lee's in various plugins.
 >
 > So the issue is permanence (hence using post meta instead of transients)
 and using regular options is not possible because it would use up too much
 memory when auto loaded.

 `add_option()` takes an autoload parameter that can be set to `'no'`
 instead, plus this stores it per-site rather than network-wide. Seems
 better than files to me. :)

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


More information about the wp-trac mailing list