Roots Discourse

Set wp_memory_limit up in Trellis


#1

Trying to define( 'WP_MEMORY_LIMIT' , '128M' );

Doing:

# group_vars/development/wordpress_sites
musicasusual.es:
    wp_memory_limit: 128M

Then, vagrant up --provision

Memory remains at 40M. What is wrong?


#2

You’ll need to define php_memory_limit in order for PHP to have the correct memory limit


#3

Sorry, I marked as solved too quickly. PHP memory limit seems to be right:

I only get wp_memory_limit: 128M hardcoding:

# bedrock/config/application.php
define('WP_MEMORY_LIMIT', '128M');

This config works:

If I try to set up with Trellis:

# group_vars/development/wordpress_sites
musicasusual.es:
        site_hosts:
          - canonical: musicasusual.test
        local_path: ../musicasusual
        wp_memory_limit: 128M

PHP limit is OK, but WP limit remais 40M:

42

Would be an error in the wordpress_sites.yml. Isn’t it?


#4

Defining wp_memory_limit in your wordpress_sites.yml isn’t doing anything

You’ll still need to define WP_MEMORY_LIMIT in the Bedrock config


#5

Ok! Thank you

20chars