[wp-trac] [WordPress Trac] #34560: High memory usage ( and possible server error) editing post with many/large revisions

WordPress Trac noreply at wordpress.org
Fri Jul 10 15:12:17 UTC 2020


#34560: High memory usage ( and possible server error) editing post with many/large
revisions
-------------------------------------+-------------------------------------
 Reporter:  pdfernhout               |       Owner:  adamsilverstein
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  5.5
Component:  Revisions                |     Version:  3.6
 Severity:  major                    |  Resolution:  fixed
 Keywords:  has-patch dev-feedback   |     Focuses:  administration,
  needs-testing needs-refresh has-   |  performance
  unit-tests commit                  |
-------------------------------------+-------------------------------------
Changes (by adamsilverstein):

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


Comment:

 In [changeset:"48422" 48422]:
 {{{
 #!CommitTicketReference repository="" revision="48422"
 Revisions: optimize performance when post has large number of revisions.

 Improve speed and reduce the memory footprint when loading posts with many
 revisions.

 * Use a direct query in `wp_get_post_autosave` to avoid loading all
 revisions.
 * Query for IDs vs full objects in `register_and_do_post_meta_boxes`.

 Props pdfernhout, johnnyb, miqrogroove, ocean90, senatorman,
 DBrumbaugh10Up, martijn-van-der-kooij, pavelevap, mackensen, mikeyarce,
 whyisjake.
 Fixes #34560.
 }}}

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


More information about the wp-trac mailing list