Skip to content

Increase the WordPress memory limit

As WordPress overrides PHP’s memory_limit setting, you must edit the WordPress wp-config.php file to increase a WordPress app’s PHP memory limit.

Your wp-config.php file is located in your app’s public folder at apps/APPNAME/public.

Memory limit for the WordPress dashboard

To increase the memory limit for the WordPress dashboard (wp-admin), open the app’s wp‑config.php and add the following line.

define('WP_MAX_MEMORY_LIMIT', '512M');

The example above sets the memory limit to 512MB.

Memory limit for public WordPress pages

To increase the memory limit for public-facing WordPress pages, open the app’s wp‑config.php and add the following line.

define('WP_MEMORY_LIMIT', '512M');

The example above sets the memory limit to 512MB.