[wp-trac] [WordPress Trac] #49412: Store filesize media metadata
WordPress Trac
noreply at wordpress.org
Thu May 20 21:51:05 UTC 2021
#49412: Store filesize media metadata
-------------------------------------------------+-------------------------
Reporter: Cybr | Owner:
| johnwatkins0
Type: feature request | Status: assigned
Priority: normal | Milestone: Future
| Release
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses:
refresh | performance
-------------------------------------------------+-------------------------
Comment (by azaozz):
After more discussion in Slack
(https://wordpress.slack.com/archives/C02SX62S6/p1620500571129800), the
requirements/expectations for `filesize` seem to be:
- It will only be added for the "full" image size. This may not be the
uploaded/original image file if the image was resized on uploading.
- It may be missing or unreliable (if the image was optimized by a plugin
after uploading), and will be used primarily as cache when showing image
info in wp_admin.
- May be good to have some sort of a "backfill" functionality when
`filesize` is missing. However that should happen "very sensibly". DB
writes should be optimized (single write per page load) and happen only
from wp-admin.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49412#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list