[wp-trac] [WordPress Trac] #53502: Twenty Twenty-One: Remove use of `filemtime()`

WordPress Trac noreply at wordpress.org
Fri Jun 25 06:00:06 UTC 2021


#53502: Twenty Twenty-One: Remove use of `filemtime()`
--------------------------------------+---------------------
 Reporter:  desrosj                   |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  5.8.1
Component:  Bundled Theme             |     Version:  5.6
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+---------------------

Comment (by peterwilsoncc):

 Replying to [comment:5 ryelle]:
 > Out of curiosity, is there a reason to not use `filemtime`, or just that
 it's stable now and should use `wp_get_theme()->get( 'Version' )`?

 In certain set ups or using some deployment techniques the file's modified
 time can change more frequently than the file is modified so browser and
 proxy caches end up getting broken more often than needed.

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


More information about the wp-trac mailing list