[wp-trac] [WordPress Trac] #49412: Store filesize media metadata
WordPress Trac
noreply at wordpress.org
Wed Feb 12 03:39:08 UTC 2020
#49412: Store filesize media metadata
-----------------------------+-----------------------------
Reporter: Cybr | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Keywords:
Focuses: performance |
-----------------------------+-----------------------------
Previous: #33214, comment:6:ticket:47459
When storing media files, I think it'd be helpful that the result of
`filesize( $file )` is stored with the media's metadata. Whereafter we can
retrieve it via
[https://developer.wordpress.org/reference/functions/wp_get_attachment_metadata/
wp_get_attachment_metadata()].
This way, we no longer have to touch the file and can work from the
database-provided metadata instead. There's performance overhead involved
when media is stored on slow/shared storage or even on another server.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49412>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list