[wp-trac] [WordPress Trac] #36723: Add caching to wp_old_slug_redirect
WordPress Trac
noreply at wordpress.org
Sat Apr 30 08:26:31 UTC 2016
#36723: Add caching to wp_old_slug_redirect
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Posts, Post Types | Review
Severity: normal | Version: 2.1
Keywords: has-patch dev-feedback needs-unit- | Resolution:
tests | Focuses:
| performance
-------------------------------------------------+-------------------------
Comment (by dd32):
The `wp_old_slug_redirect()` function only runs when the current pageload
is marked as a 404, based on the `is_404()` check at the start of the
function.
I don't think caching is the answer here, rather the custom code you're
using to make a "fake" page needs to flag the page as not-a-404 to
WordPress.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36723#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list