diff --git a/modules/profile/manifests/wordpress/base.pp b/modules/profile/manifests/wordpress/base.pp index 2037be7..7cdb00d 100644 --- a/modules/profile/manifests/wordpress/base.pp +++ b/modules/profile/manifests/wordpress/base.pp @@ -39,7 +39,7 @@ class { 'php::fpm': ini_values_extra => { - 'memory_limit' => '512M', + 'memory_limit' => '64M', }, } diff --git a/modules/profile/templates/wordpress/docs/jquery-config.php.erb b/modules/profile/templates/wordpress/docs/jquery-config.php.erb index 499a804..aed617d 100644 --- a/modules/profile/templates/wordpress/docs/jquery-config.php.erb +++ b/modules/profile/templates/wordpress/docs/jquery-config.php.erb @@ -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' ); +}