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

WordPress Trac noreply at wordpress.org
Wed Jun 25 17:27:13 UTC 2014


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

Comment (by helen):

 Possible ideas, none of them really exclude the rest:

 * (Filterable?) array of statuses that synchronously request and cache the
 embed. Terminal statuses, but without trying to act like we're
 establishing the concept here.
 * Only synchronously request embeds that don't have a corresponding
 non-`{{unknown}}` response saved already. Store the rest somewhere
 (transient), then fire a request for those async.
 * Store somewhere (transient) the embeds that have been requested since
 the last save and don't re-request those at all.
 * Maybe we should short-term cache HTTP responses? See above item.

 Now that there are TinyMCE and modal previews, fewer embeds need to be
 requested on save in general, but of course there are text mode and other
 scenarios.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/14759#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list