Closed samikeijonen closed 6 months ago
Very good, makes perfect sense. wp-config.php
is the correct place for this as we have that if statement already there checking the WP_ENV
variable. This new addition would then affect staging environments as well, where caching is not desired either.
Would you mind creating a PR yourself?
Sure, I can do PR next week.
There has been some caching related changes in recent WP releases.
In short, when developing a site,
theme.json
and patterns are cached. This makes it annoying to develop since the changes are not seen right away.When in DEV my suggestion is to add
define( 'WP_DEVELOPMENT_MODE', 'all' );
. Maybe inwp-config.php
: