We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a852e9 commit ddaff50Copy full SHA for ddaff50
src/Context/FeatureContext.php
@@ -1785,7 +1785,8 @@ public function install_wp_with_composer( $vendor_directory = 'vendor' ): void {
1785
$config_extra_php .= "require_once dirname(__DIR__) . '/" . $vendor_directory . "/autoload.php';\n";
1786
1787
if ( 'sqlite' === getenv( 'WP_CLI_TEST_OBJECT_CACHE' ) ) {
1788
- $config_extra_php .= "define( 'WP_CACHE_KEY_SALT', '" . bin2hex( random_bytes( 16 ) ) . "' );\n";
+ // Use a deterministic salt per install to allow create_config() to reuse cached configs.
1789
+ $config_extra_php .= "define( 'WP_CACHE_KEY_SALT', '" . md5( $this->variables['RUN_DIR'] ) . "' );\n";
1790
}
1791
1792
$this->create_config( 'WordPress', $config_extra_php );
0 commit comments