Skip to content

Commit

Permalink
Check for VIP_GO_APP_ENVIRONMENT before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher authored Sep 22, 2023
1 parent 7e18e0a commit 5437bf0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drop-ins/object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@

// Will use the "next" version on these specified environment types by default.
if ( ! defined( 'VIP_USE_NEXT_OBJECT_CACHE_DROPIN' ) ) {
if ( in_array( VIP_GO_APP_ENVIRONMENT, [ 'develop', 'preprod', 'staging' ], true ) ) {
if ( defined( 'VIP_GO_APP_ENVIRONMENT' ) && in_array( VIP_GO_APP_ENVIRONMENT, [ 'develop', 'preprod', 'staging' ], true ) ) {
define( 'VIP_USE_NEXT_OBJECT_CACHE_DROPIN', true );
} else {
define( 'VIP_USE_NEXT_OBJECT_CACHE_DROPIN', false );
}
}

Expand Down

0 comments on commit 5437bf0

Please sign in to comment.