File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -157,17 +157,19 @@ function perflab_get_standalone_plugin_version_constants(): array {
157
157
function perflab_maybe_set_object_cache_dropin (): void {
158
158
global $ wp_filesystem ;
159
159
160
- // Bail if the drop-in is not enabled .
161
- if ( ! defined ( 'PERFLAB_PLACE_OBJECT_CACHE_DROPIN ' ) || ! PERFLAB_PLACE_OBJECT_CACHE_DROPIN ) {
160
+ // Bail if Server-Timing is disabled entirely .
161
+ if ( defined ( 'PERFLAB_DISABLE_SERVER_TIMING ' ) && PERFLAB_DISABLE_SERVER_TIMING ) {
162
162
return ;
163
163
}
164
164
165
- // Bail if Server-Timing is disabled entirely .
166
- if ( defined ( 'PERFLAB_DISABLE_SERVER_TIMING ' ) && PERFLAB_DISABLE_SERVER_TIMING ) {
165
+ // Bail if the drop-in is not enabled .
166
+ if ( ! defined ( 'PERFLAB_PLACE_OBJECT_CACHE_DROPIN ' ) || ! PERFLAB_PLACE_OBJECT_CACHE_DROPIN ) {
167
167
return ;
168
168
}
169
169
170
170
// Bail if disabled via constant.
171
+ // This constant is maintained only for backward compatibility and should not be relied upon in new implementations.
172
+ // Use the 'PERFLAB_PLACE_OBJECT_CACHE_DROPIN' constant instead to control drop-in placement.
171
173
if ( defined ( 'PERFLAB_DISABLE_OBJECT_CACHE_DROPIN ' ) && PERFLAB_DISABLE_OBJECT_CACHE_DROPIN ) {
172
174
return ;
173
175
}
You can’t perform that action at this time.
0 commit comments