I'm profiling a site where flag -> actions -> http://drupal.org/project/activity -> token_replace_multiple() -> content_token_values().

content_token_values() takes 3000ms during that request (activity resets the token cache).

Adding a patch which adds caching in content_token_values() itself - this will persist past token cache clears, it's updated when the content cache is updated.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch’s picture

Status: Active » Needs review
Issue tags: +Performance
FileSize
2.59 KB

With patch this time.

Désiré’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev
FileSize
2.93 KB

I have the same problem (with 3.x too), but I prefer caching to a static variable.