[wp-trac] [WordPress Trac] #30720: In editor, add a button to refresh/invalidate (oEmbed) embeds cache
WordPress Trac
noreply at wordpress.org
Mon Jul 11 20:19:14 UTC 2016
#30720: In editor, add a button to refresh/invalidate (oEmbed) embeds cache
-------------------------+-----------------------------
Reporter: ivanp | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Embeds | Version: 4.0
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: ui
-------------------------+-----------------------------
Comment (by swissspidy):
> So maybe a solution to handle corrupt Oembed caches would be to check
for {{unknown}} caches when the caches are retrieved. If an {{unknown}} is
found, then clear it.
So basically that would mean not caching `{{unknown}}`. Don't think that's
an option.
> The only problem I can foresee is that if there is an issue with an
Oembed, then the URL just ends up being a normal URL in the editor, so you
wouldn't be able to click on the embed or have the "Insert from URL"
dialogue box appear in order to refresh the Oembed cache.
We might be able to change this so that the URL will still be in a wpView
like a working embed. That way you could still click on the "X" to clear
the cache.
That is probably the most unobtrusive way, as I wouldn't add a big ol'
button saying "Clear oEmbed cache" which the user has no clue of.
@iseulde @azaozz How feasible would it be to have a wpView for non-working
embeds that have been turned into a link?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30720#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list