[wp-trac] [WordPress Trac] #56628: Cron memory limit is unnecessarily low

WordPress Trac noreply at wordpress.org
Tue May 30 18:47:14 UTC 2023


#56628: Cron memory limit is unnecessarily low
-------------------------+--------------------------
 Reporter:  iandunn      |       Owner:  johnbillion
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  6.3
Component:  Cron API     |     Version:  2.1
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+--------------------------
Changes (by johnbillion):

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


Comment:

 In [changeset:"55871" 55871]:
 {{{
 #!CommitTicketReference repository="" revision="55871"
 Cron API: Attempt to raise the PHP memory limit for cron event processing.

 Since cron events often consume extra memory by nature, it makes sense to
 give them the full amount available by default. In practice this means the
 memory will be increased to `WP_MAX_MEMORY_LIMIT` (which is 256MB by
 default) during cron event processing if the default memory limit is lower
 than this value.

 The new `cron_memory_limit` filter can be used to adjust this value if
 necessary.

 Note that this change will not by default affect external means of
 processing cron events, such as the `wp cron` command in WP-CLI, server-
 level crontab events, or any other cron event processing mechanism that
 bypasses `wp-cron.php`.

 Props iandunn, thakkarhardik

 Fixes #56628
 }}}

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


More information about the wp-trac mailing list