[glotpress-updates] [GlotPress] #464: Don't decrease the memory limit upon import

GlotPress noreply at wordpress.org
Tue Jul 14 13:03:00 UTC 2015


#464: Don't decrease the memory limit upon import
---------------------+-----------------------------
 Reporter:  dd32     |      Owner:
     Type:  defect   |     Status:  new
 Priority:  normal   |  Milestone:  Awaiting Review
Component:  General  |    Version:
 Keywords:           |
---------------------+-----------------------------
 [290] introduced an `@ini_set('memory_limit', '256M');` into
 `GP_Translation_Set::import()`.

 Obviously this method uses a lot of memory in many cases, however I'm
 running into a case where it actually needs more than `256M`.. I have my
 scripts set to `1G`, but of course every time the import is called, it's
 bumped back down to `256M`.

 GlotPress should ideally have some kind of wrapping function available to
 conditionally increase the memory limit only when `memory_limit < 256M`.
 WordPress uses some pretty ugly inline code for this:
 https://core.trac.wordpress.org/browser/trunk/src/wp-includes/default-
 constants.php#L41

--
Ticket URL: <https://glotpress.trac.wordpress.org/ticket/464>
GlotPress <https://glotpress.trac.wordpress.org>
Easy comin', easy goin'


More information about the glotpress-updates mailing list