Make WordPress Core

Opened 3 months ago

Last modified 6 weeks ago

#60713 assigned defect (bug)

remove 'array_merge(...)' is used in a loop and is a resources greedy construction. from generate_rewrite_rules

Reported by: pbearne's profile pbearne Owned by: pbearne's profile pbearne
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Rewrite Rules Keywords: has-patch
Focuses: performance Cc:

Description


Change History (5)

#1 @pbearne
3 months ago

I made the update but it's not passing all the rewrite tests so I need someone understands rewrite code help debug

This ticket was mentioned in PR #6236 on WordPress/wordpress-develop by @pbearne.


3 months ago
#2

  • Keywords has-patch added

The WP Rewrite class now uses an array chunk approach to handle rewrite rules. It introduces a new array '$rewrite_chucks', which simplifies the handling of rewrite rules and aids readability. The array merge functions for rewriting rules have also been compacted, thereby enhancing the efficiency of the code.

Trac ticket: 60713

This ticket was mentioned in Slack in #core-performance by pbearne. View the logs.


2 months ago

This ticket was mentioned in Slack in #core-performance by mukeshpanchal27. View the logs.


2 months ago

This ticket was mentioned in Slack in #core-performance by mukeshpanchal27. View the logs.


6 weeks ago

Note: See TracTickets for help on using tickets.