[wp-trac] Re: [WordPress Trac] #3141: explicit memory check before starting install

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 31 01:33:25 GMT 2007


#3141: explicit memory check before starting install
-------------------------------------+--------------------------------------
 Reporter:  looksaus                 |        Owner:  ffemtcj 
     Type:  defect                   |       Status:  assigned
 Priority:  normal                   |    Milestone:  2.4     
Component:  Administration           |      Version:  2.1     
 Severity:  normal                   |   Resolution:          
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------
Comment (by darkdragon):

 Includes a function which could be used in later !WordPress versions and
 by Plugins to attempt to increase memory limit when needed in the case
 that the memory is about to be exhausted.

 The algorithm is but a prototype, which increases the memory limit by 75%
 whenever the memory limit is 75% or higher of the current memory limit. If
 the function to get the current peak memory usage is unavailable the
 function will return 'null' and will do nothing.

 So basically, you can use my patch as a guide for what I was trying to
 explain or ignore it. It is what I've been thinking would be great to
 solve this problem, but never got around to doing so. Having the
 increasing the memory based on usage in !WordPress would allow future
 plugins and future !WordPress versions to use it to get rid of those pesky
 memory has been exhausted errors.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3141#comment:31>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list