[wp-trac] [WordPress Trac] #49412: Store filesize media metadata

WordPress Trac noreply at wordpress.org
Thu Oct 29 07:34:58 UTC 2020


#49412: Store filesize media metadata
--------------------------------------+-----------------------------
 Reporter:  Cybr                      |       Owner:  (none)
     Type:  feature request           |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  Media                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+-----------------------------

Comment (by Cybr):

 > Unexpectedly, I discovered that `filesize` was returning slightly
 different results in the different GHA test environments.

 Perhaps [https://www.php.net/manual/en/function.clearstatcache.php
 clearstatcache] will do the trick before obtaining the filesize; although,
 I'm not sure if this is needed outside a testing environment.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49412#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list