Acquia Cloud Site Factory: Increasing memory_limit with factory hooks | Site Factory | Acquia Product Documentation
Site Factory
Acquia Cloud Site Factory: Increasing memory_limit with factory hooks
Acquia Cloud Site Factory: Increasing memory_limit with factory hooks
Date Published: April 8, 2022
Issue
As an Acquia Cloud Site Factory customer, you may want to make an increase PHP memory limits.
Resolution
For Acquia Cloud Site Factory, you can either increase the default PHP memory limit or conditionally increase the PHP memory limit for specific pages or paths using factory hooks in a PHP file to the factory-hooks/pre-settings-php directory.
If you need to increase the memory limit only for a certain page or pages, then we recommend increasing the memory conditionally for a given path. This leaves the memory allocated for typical pages with the default value and your site more robust on the ACSF platform.
Change the "700M" value below to the desired size.
Drupal 9
in factory-hooks/pre-settings-php/pre_settings.php