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

WordPress Trac noreply at wordpress.org
Tue Jan 19 23:58:25 UTC 2016


#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 DBrumbaugh10Up):

 Things I did to make it more "oop":

 1. Renamed the class to make it more clear WHAT we were tracking revisions
 of.  In theory things besides posts could have revisions.
 2. Made it less dependent on globals - which were unnecessary in this case
 - by passing the post id to the constructor.
 3. Removed the pseudo singleton pattern and tied the instantiation clearly
 to the post in question.

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


More information about the wp-trac mailing list