We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locally, Mantle can load the object-cache.php dropin file which can impact the running of the unit tests.
object-cache.php
I'd propose a helper method, ->without_object_cache(), that can be chained. It's similar to how I was able to stop it in a client project.
->without_object_cache()
->on( 'enable_loading_object_cache_dropin', function ( $retval ): bool { if ( defined( 'VIP_GO_APP_ENVIRONMENT' ) && 'local' === \VIP_GO_APP_ENVIRONMENT ) { return false; } return $retval; } )
This example assumes VIP_GO_APP_ENVIRONMENT is used, but we could create a custom env or the helper method could accept a callback/validator.
VIP_GO_APP_ENVIRONMENT
The text was updated successfully, but these errors were encountered:
@srtfisher Do you have a preference for the implementation? A custom env or a callback/validator?
Sorry, something went wrong.
srtfisher
Successfully merging a pull request may close this issue.
Description
Locally, Mantle can load the
object-cache.php
dropin file which can impact the running of the unit tests.Use Case
I'd propose a helper method,
->without_object_cache()
, that can be chained. It's similar to how I was able to stop it in a client project.This example assumes
VIP_GO_APP_ENVIRONMENT
is used, but we could create a custom env or the helper method could accept a callback/validator.The text was updated successfully, but these errors were encountered: