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

WordPress Trac noreply at wordpress.org
Wed Nov 11 01:24:28 UTC 2015


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

Comment (by adamsilverstein):

 > why? if you pass the post, it skips the lookups in `get_post()`

 because I am no longer getting every revision as revision objects to
 generate the list. instead I'm getting only the fields needed for the
 revisions list, avoiding loading the post content, title and excerpt data
 into memory. we don't really need complete post objects to generate the
 list, and getting them causes memory use bloat, especially for large/many
 revisions.

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


More information about the wp-trac mailing list