Title: Rewrite rules updated during the same HTTP request
Last modified: January 29, 2023

---

# Rewrite rules updated during the same HTTP request

 *  Resolved [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * (@giuse)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/rewrite-rules-updated-during-the-same-http-request/)
 * Hello,
 * it looks like Events Manager updates the rewrite rules during a normal page request.
 * Please, check your code [https://plugins.trac.wordpress.org/browser/events-manager/tags/6.3/classes/em-permalinks.php#L34](https://plugins.trac.wordpress.org/browser/events-manager/tags/6.3/classes/em-permalinks.php#L34)
 * At line 34 in the method flush() you flush the rewrite rules.
   The problem is 
   that you do it also during a normal page request.Can you please ensure you flush
   the rewrite rules only after you really need it? For example after activating
   or updating a plugin, a theme, changing language, and so on?If you do it during
   a normal page request and some plugins are disabled only on that page, the rewrite
   rules will be rebuilt and cached missing some rules. This may cause serious issues
   if the user disables specific plugins on specific pages, for example by using
   [Freesoul Deactivate Plugins,](https://wordpress.org/plugins/freesoul-deactivate-plugins/)
   but also by using other similar plugins.
 * Have a great day!
 * Jose

The topic ‘Rewrite rules updated during the same HTTP request’ is closed to new 
replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/rewrite-rules-updated-during-the-same-http-request/)
 * Status: resolved