[wp-trac] [WordPress Trac] #57487: Add support for "development mode"

WordPress Trac noreply at wordpress.org
Mon Jun 26 16:34:36 UTC 2023


#57487: Add support for "development mode"
--------------------------------------+-----------------------
 Reporter:  azaozz                    |       Owner:  flixos90
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  6.3
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------

Comment (by schlessera):

 Just reading through this, I think that the proposed solution of having a
 "development mode" is not a good approach and is so vague that it will
 most certainly lead to a lot of confusion and issues down the road.

 What if I want to "develop", but I need caches to see the scaling
 behavior? What if I want to disable caching on a production server?

 My suggestion would be to stick to the behavior that should be controlled,
 not to an overarching names that might make perfect sense with a full
 product, but quickly gets muddy with something that is used as a
 development framework by a lot of folks.

 How about having a constant `WP_USE_INTERNAL_CACHES` that defaults to `!
 WP_DEBUG` (NOT) instead?
 You could even go as far as having it be full enable/disable with
 `true`/`false` or even allowing a comma-separated list of types of caches
 to use for more granular control (only if needed).

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


More information about the wp-trac mailing list