[buddypress-trac] [BuddyPress Trac] #9061: Rewrite Rules Built Even When Not Needed
buddypress-trac
noreply at wordpress.org
Mon Jan 8 15:32:10 UTC 2024
#9061: Rewrite Rules Built Even When Not Needed
-------------------------+-----------------------------
Reporter: sjregan | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 12.0.0
Severity: normal | Keywords:
-------------------------+-----------------------------
Preface: this could just be me not understanding the best practices
regarding rewrite rules.
Rewrite rules for components are built every page load, regardless of
whether they are needed or not.
If rewrite rules are already saved in the wp_options table, they are used.
If you use the BP hooks to add rewrite rules, they are ignored during
until you programatically delete the wp_options entry, or visit the
Permalinks settings page in WP Admin.
Would it not be more performant to only build the rewrite rules on plugin
install, or when the 'generate_rewrite_rules' action is fired, or inside
the 'rewrite_rules_array' filter?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9061>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list