[wp-trac] [WordPress Trac] #42573: Templates not working properly

WordPress Trac noreply at wordpress.org
Thu Nov 23 06:52:29 UTC 2017


#42573: Templates not working properly
--------------------------+-----------------------
 Reporter:  precies       |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  high          |   Milestone:  4.9.1
Component:  Themes        |     Version:  4.9
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------

Comment (by schlessera):

 @Otto42 For the file lists in the editors, as we don't control the
 structure that will get parsed and the depth that will need to be
 traversed, this can potentially take minutes to complete. The caching is a
 kind of safeguard to not enable people to bring the entire server down
 because they totally trash IO bandwidth.

 I've added a new patch 42573.5.patch that disables the caching for theme
 files if the requested depth is 1 or less. The template files are all
 being scanned with a requested depth of 1 for the PHP files and 0 for the
 CSS file. So, this should effectively disable caching in regards to the
 templating completely, while still keeping it as a safeguard for the code
 editor.

 Also, I reduced the expiration of the cache from 1 hour to 5 minutes. This
 will still throttle I/O usage, while reducing the negative side effects of
 caching.

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


More information about the wp-trac mailing list