Opened 19 months ago
Closed 19 months ago
#19175 closed defect (bug) (fixed)
Improve get_page_by_path() performance
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Performance | Version: | 3.3 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: |
Description
Follow up for #17670 where a few performance improvements were suggested.
I found an improvement of about 50% in some simplistic tests (loop over the function 10,000 times) by removing the $post_type parameter from the get_page() call. This was added in [13774]. The issue is that this is passing the post type to the filter argument which means that get_post() runs the relatively expensive sanitize_post().
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.

Per IRC. This is just a copy-paste error. Parameter never should have been passed.