WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

Conditional memory limit changes in settings.php for Drupal 8

Submitted by barnettech on Mon, 03/18/2019 - 10:08

Conditional memory limit changes in settings.php for Drupal 8

if (isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], 'edit') !== false ) {
ini_set('memory_limit', '256M');
}