If the render array returned by a file includes something in its #cache property, then its possible for a file in the media browser to not be selectable, because the output was cached before it ran through the media_thumbnail wrapper.

Conversely, if you see the file in question in the media browser first after a cache clear, then the preview on the file edit page will have the media_thumbnail wrapper applied as well.

I'm seeing this with oembed that I've patched to work with the latest version of media. I did not patch the caching in, that was left untouched.

Comments

Chris Matthews’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team