We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbc0c31 commit 71ea37fCopy full SHA for 71ea37f
1 file changed
source/wp-content/themes/wporg-developer/inc/cli-commands.php
@@ -188,8 +188,10 @@ public function parse( $args, $assoc_args ) {
188
}
189
190
// 3. Run the parser.
191
+ // If running locally, run a quick parse which skips DB replication-lag sleep()'s
192
+ $quick = in_array( wp_get_environment_type(), array( 'local', 'development' ) ) ? '--quick' : '';
193
WP_CLI::log( 'Running the parser (this will take awhile)...' );
- WP_CLI::runcommand( "parser create {$path} --user={$user_id}" );
194
+ WP_CLI::runcommand( "parser create {$path} --user={$user_id} {$quick}" );
195
196
// 4. Deactivate phpdoc-parser plugin.
197
WP_CLI::log( 'Deactivating phpdoc-parser plugin...' );
0 commit comments