WordPress inserting rewrite_rules option more than once

I’m trying to optimize a slow wordpress site. I use a plugin called Query Monitor to find something abnormal.

I can see that the rewrite_rules option is reinserted every page (more than 50000 characters).

Read More

Here is the stacktrace :

add_option()

-
update_option()
 wp-includes/option.php:301
WP_Rewrite->wp_rewrite_rules()
 wp-includes/class-wp-rewrite.php:1452
WP_Rewrite->flush_rules()
 wp-includes/class-wp-rewrite.php:1774
do_action('wp_loaded')
 wp-includes/plugin.php:525

These files seems like core wordpress files.

I’m not sure if this is the normal behaviour ? I think not because I see no good reason.

Have you seen this before ?

Related posts