Skip to content

Commit

Permalink
Copy cache-delete operation added to Rewrite Rules Inspector in v1.4.0 (
Browse files Browse the repository at this point in the history
  • Loading branch information
ethitter authored Jun 4, 2024
1 parent d61ee86 commit ac62ea6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/class-customizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ public function rebuild_sitemaps(): void {
public function flush_rewrites(): void {
WP_CLI::line( ' * Flushing rewrite rules.' );

wp_cache_delete( 'rewrite_rules', 'options' );
// Used in CLI context.
// phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.flush_rewrite_rules_flush_rewrite_rules
flush_rewrite_rules( false );
Expand Down

0 comments on commit ac62ea6

Please sign in to comment.