[wp-trac] [WordPress Trac] #14759: Improve the way oEmbed deals with caching
WordPress Trac
noreply at wordpress.org
Thu Mar 14 22:24:58 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 leewillis77):
The attached patch:
* Respects cache_age if it is provided by the oEmbed provider
* Caches for 30 days if not (Should we make this filterable?)
* Caches failures for 12 hours
* Stores the oEmbed response in postmeta (_oembed_md5)
* Stores the expiry time for that embed in postmeta also (_oemexp_md5)
* Deletes oEmbed data on post update (As per current code)
The missing bit for me currently is how do we preload the oEmbed resource
again once it expires (Or is near to expiry). I'm happy to add a cron job
that retrieves any postmeta entries that have expired/are due to expire in
the next hour(?) and preloads them if we agree that's sensible?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14759#comment:21>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list