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

WordPress Trac noreply at wordpress.org
Mon Nov 20 17:58:02 UTC 2017


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

Comment (by ryanduff):

 Replying to [comment:37 robscott]:
 > @ryanduff if it were very simple to flush the caches, would you still
 have an issue with this being present? I like caching things that do not
 (normally) change, particularly if it can speed up admin pageload in poor
 and shared hosting... otherwise "WordPress is slow" will be the user
 takeaway.
 >
 > Surely here we're talking about a surprise to a developer in their
 workflow versus slow(er) admin performance for *all* users of WordPress.
 >
 > Assuming developers get a solution as a result of this conversation,
 that would be a win win? Without reverting anything?


 No. Again, r41806 got "clever" by introducing a max depth of 100 levels to
 the file list function. This is not needed nor is caching around it. Find
 me a bug where someone complained the page editor screen was too slow
 because their theme was bloated with files. What does this fix? Nada.

 If you have slow admin performance it's because (a) Core changed to scan
 100 levels deep in your theme folder and (b) you're using a theme so
 bloated it's now affected by this change and you should probably find a
 new theme.

 This is not just a developer issue. It's only a matter of time before end
 users run into this issue as well (if they haven't already reported it in
 the forums).

 The bigger issue here is template files not being available because the
 list is cached, not that the editor now supports editing theme files 100
 levels deep.

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


More information about the wp-trac mailing list