Monday, July 15, 2013

Looking to Speed up your Drupal Website? Use Token Tweaks Module

On larger Drupal sites, the Token module quickly becomes unwieldy, and the UI can consume precious resources while often being never used. Here are some options for mitigation of this.

Token_tweaks module

Written by the same guy who wrote token, token_tweaks aims to reduce the recursiveness of the theme_token_tree() function. This simple fix is enough on most sites to speed up page loads, and reduce memory consumption.

This is a real life example from a current (large) Drupal project I am working on. With vanilla token module installed, and viewing an admin page with a theme_token_tree() rendered on it (it happens to be a webform configuration page). I used devel to produce these metrics. Read More