Skip to content

Commit 67e257c

Browse files
Update facetwp-wp-cli.php
1 parent b65d5f5 commit 67e257c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

facetwp-wp-cli.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ function index( $args, $assoc_args ) {
5353
WP_CLI::error( 'FacetWP plugin is not activated.' );
5454
}
5555

56-
wp_suspend_cache_addition( true );
57-
5856
$post_type = 'any';
5957
if ( ! empty( $assoc_args['post-type'] ) ) {
6058
$post_type = $assoc_args['post-type'];
@@ -118,7 +116,6 @@ protected function stop_the_insanity() {
118116
global $wpdb, $wp_object_cache, $wp_actions;
119117
$wpdb->queries = array();
120118
$wp_actions = array();
121-
wp_cache_flush();
122119
if ( !is_object( $wp_object_cache ) ){
123120
return;
124121
}

0 commit comments

Comments
 (0)