[wp-trac] [WordPress Trac] #36723: Add caching to wp_old_slug_redirect

WordPress Trac noreply at wordpress.org
Tue Jun 21 13:33:04 UTC 2022


#36723: Add caching to wp_old_slug_redirect
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.1
Component:  Posts, Post Types                    |     Version:  2.1
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch dev-feedback has-unit-     |     Focuses:
  tests needs-refresh                            |  performance
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53549" 53549]:
 {{{
 #!CommitTicketReference repository="" revision="53549"
 Posts, Post Types: Add caching to `_find_post_by_old_slug` and
 `_find_post_by_old_date` functions.

 Cache result of database queries in `_find_post_by_old_slug` and
 `_find_post_by_old_date` functions. This means that repeated requests to a
 url where the page is not found, will result in hitting a cache for sites
 running persistent object caching.

 Props Spacedmonkey, dd32, mukesh27, pbearne, flixos90.
 Fixes #36723.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/36723#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list