Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#51650 closed enhancement (duplicate)

Store file size in attachment metadata

Reported by: spacedmonkey Owned by:
Priority: normal Milestone:
Component: Media Version:
Severity: normal Keywords: needs-patch needs-unit-tests
Cc: Focuses: performance

Description

Many popular plugins like Yoast, ACF and Jetpack, use the function filesize to get the file size of a attachment. This call can be expensive. WordPress should store this file size in post meta where plugins and WordPress core can easily receive this information.

Change History (2)

#1 @davidbaumwald
6 years ago

  • Focuses performance added

#2 @SergeyBiryukov
6 years ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Duplicate of #49412.

Note: See TracTickets for help on using tickets.