Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1105414-caching_for_content_token_values-2-6.x-3.x.patch | 2.93 KB | Désiré |
#1 | cck_1105414.patch | 2.59 KB | catch |
Comments
Comment #1
catchWith patch this time.
Comment #2
Désiré CreditAttribution: Désiré commentedI have the same problem (with 3.x too), but I prefer caching to a static variable.