Skip to content

Commit

Permalink
wordpress: reduce memory_limit from 512M to 64M
Browse files Browse the repository at this point in the history
Restrict the raised limit to XMLRPC where it is needed.
  • Loading branch information
Krinkle committed Nov 12, 2023
1 parent a8a0d5a commit 06413ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/profile/manifests/wordpress/base.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

class { 'php::fpm':
ini_values_extra => {
'memory_limit' => '512M',
'memory_limit' => '64M',
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ define( 'JQUERY_STAGING_FORMAT', '' );
define( 'JQUERY_STAGING', true );
define( 'JQUERY_STAGING_FORMAT', 'stage.%s' );
<%- end -%>

// Raise limit to accommodate resource uploads from builder hosts
// that run the "wordpress-deploy" Grunt task.
if ( defined( 'XMLRPC_REQUEST' ) ) {
@ini_set( 'memory_limit', '512M' );
}

0 comments on commit 06413ab

Please sign in to comment.