[wp-trac] [WordPress Trac] #40731: locate_template() performance improvement

WordPress Trac noreply at wordpress.org
Mon Dec 11 08:50:35 UTC 2017


#40731: locate_template() performance improvement
---------------------------+------------------------------------
 Reporter:  danielhuesken  |       Owner:  johnbillion
     Type:  enhancement    |      Status:  reviewing
 Priority:  normal         |   Milestone:  5.0
Component:  Themes         |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  template, performance
---------------------------+------------------------------------

Comment (by dd32):

 Just wanted to note, that while this may speed things up ever so slightly,
 `file_exists()` calls are already internally cached by both PHP and the
 underlying filesystem and subsequent calls to the same `file_exists()`
 calls should return significantly faster than the initial call.

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


More information about the wp-trac mailing list