Drupal is a registered trademark of Dries Buytaert
cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! linkit 7.0.15 Minor update available for module linkit (7.0.15). views_data_export 8.x-1.10 Minor update available for module views_data_export (8.x-1.10).

Memory limit policy is a base module to override the default php memory_limit based on various constraints.

Some pages break because these are too heavy to generate? A user role has access to some interfaces displaying complex entities? With memory limit policy you can override the default php memory_limit for these situation only without doing it for all the pages. It provides a UI for non-developers to configure new memory overrides. Constraints can be combined to fit "complex" situation such as overriding the memory_limit only for one path, if it has a specific query argument and if the current visitor has a specific role.

This module comes with some default policies which can simply be enabled and configured:

  • Path: Apply the memory limit override based on the current path (wildcard support).
  • Role: Apply the memory limit override based on the current user's role.
  • Query: Apply the memory limit override based on the value of a query argument in the url
  • HTTP method: Apply the memory limit override based on the current request's HTTP method.
  • Route: Apply the memory limit override based on the current route's name.
  • Drush: Apply the memory limit override based on the drush command being executed.
  • Domain: Apply the memory limit override based on the domain (regex support).
  • Environment variable: Apply the memory limit override based on the value of an environment variable (regex support).

For developers, this module uses the plugin approach which means it is very easy to write your own plugin to fit your custom and specific case.

Activity

Total releases
1
First release
May 2026
Latest release
9 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
2.0.4 Stable May 26, 2026