Skip to content

Commit 06413ab

Browse files
committed
wordpress: reduce memory_limit from 512M to 64M
Restrict the raised limit to XMLRPC where it is needed.
1 parent a8a0d5a commit 06413ab

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

modules/profile/manifests/wordpress/base.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
class { 'php::fpm':
4141
ini_values_extra => {
42-
'memory_limit' => '512M',
42+
'memory_limit' => '64M',
4343
},
4444
}
4545

modules/profile/templates/wordpress/docs/jquery-config.php.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ define( 'JQUERY_STAGING_FORMAT', '' );
88
define( 'JQUERY_STAGING', true );
99
define( 'JQUERY_STAGING_FORMAT', 'stage.%s' );
1010
<%- end -%>
11+
12+
// Raise limit to accommodate resource uploads from builder hosts
13+
// that run the "wordpress-deploy" Grunt task.
14+
if ( defined( 'XMLRPC_REQUEST' ) ) {
15+
@ini_set( 'memory_limit', '512M' );
16+
}

0 commit comments

Comments
 (0)