Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Page node/%/devel/token tries to print all available tokens what could be really much resource-intensive on some configurations. It usually ends on hitting memory_limit, max_execution_time or other similar states.
However utility of this page increases with complexity of entities what increases probability of runoff resources.
Proposed resolution
In most cases it helps to increase memory_limit and max_execution_time, but it is not possible to use in all cases.
Good solution will be to implement lazy loading. Options:
- Automatic - load all tokens automatically one by one, or by small groups (like Features status on it's list page),
- Optional - add buttons to table to load token optionally,
- Combination - try to load all tokens, stop if it takes a long time and let user to load other if he needs it.
Remaining tasks
Decide best solution, implement it.
User interface changes
Depends if lazy loading will be automatic or optional.
API changes
None.
Comments
Comment #1
Honza Pobořil CreditAttribution: Honza Pobořil commentedComment #2
nikathoneAdding a related issue