Skip to content

Commit

Permalink
Update object-cache.php
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Dec 11, 2018
1 parent c69828d commit 318b496
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dropins/object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,8 @@ function wp_cache_add_non_persistent_groups($groups)

$wp_object_cache->add_non_persistent_groups($groups);
}

if (defined('WP_CLI') && WP_CLI) {
\WP_CLI::add_command('redis', WP_Redis_CLI_Commands::class);
}

endif;

if (defined('WP_CLI') && WP_CLI && class_exists('WP_Redis_CLI_Commands')) {
\WP_CLI::add_command('redis', WP_Redis_CLI_Commands::class);
}

0 comments on commit 318b496

Please sign in to comment.