Skip to content

Commit

Permalink
Flush cache after uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Apr 27, 2016
1 parent c718ae9 commit a42e0bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,7 @@
$wpdb->query( "DELETE tm FROM {$wpdb->termmeta} tm LEFT JOIN {$wpdb->term_taxonomy} tt ON tm.term_id = tt.term_id WHERE tt.term_id IS NULL;" );
}
}

// Clear any cached data that has been removed
wp_cache_flush();
}

0 comments on commit a42e0bd

Please sign in to comment.