[wp-trac] [WordPress Trac] #42573: Templates not working properly
WordPress Trac
noreply at wordpress.org
Mon Nov 20 18:22:14 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 SergeyBiryukov):
Replying to [comment:28 theMikeD]:
> Replying to [comment:25 SergeyBiryukov]:
> > I don't think the `WP_DEBUG` check is enough here. Plenty of users
that create custom templates never heard of `WP_DEBUG`, and bumping the
theme version is not an obvious step either.
> >
> > Could we disable the caching for files in the theme's root directory
(which seems to be where most users upload custom templates), and only use
it for subdirectories?
>
> This feel like a half measure and would not help with themes that put
template in subfolders. WP_DEBUG along with documenting this somewhere
would be a good first step. An option somewhere in the UI to flush the
template cache would also help non-developers. But WP_DEBUG at a minimum.
I meant disabling caching in the theme's root directory in addition to the
`WP_DEBUG` check, not instead of it. A UI option seems like a non-starter
though, as it contradicts the WordPress' philosophy of "decisions, not
options".
That said, I agree with @ryanduff in comment:36, caching should not be
necessary here at all.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42573#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list