- π¬π§United Kingdom james.williams
This is still a problem for the 8.x-1.x versions (for Drupal 9/10) too. Patch attached!
I'm a bit amazed to see this issue never got noticed in the Drupal 7 days; maybe because it wasn't ever set to 'Needs review', sorry about that. I could probably help maintain this module if help is needed?
- last update
7 months ago Composer require failure - last update
7 months ago 1 pass - Status changed to Needs work
7 months ago 12:18pm 29 November 2023 - π¬π§United Kingdom Steven Jones
+++ b/token_custom.module @@ -43,17 +44,60 @@ function token_custom_token_info() { + drupal_static_reset(__FUNCTION__);
Is this a bit of debugging code that's been left in?
Why do you need to reset the static variable otherwise?
- Status changed to Needs review
7 months ago 12:24pm 29 November 2023 - π¬π§United Kingdom james.williams
Is this a bit of debugging code that's been left in?
Ohh no, just a plain mistake.
TokenCustomType::postSave()
does it where it needed to. - Status changed to RTBC
7 months ago 1:16pm 29 November 2023 - π¬π§United Kingdom Steven Jones
Seems to work nicely, and saved the queries for me :)
- π¬π§United Kingdom Steven Jones
Here's a graph of the minor performance improvement this change brought on our production systems.
The average call time for
token_custom
dropped from 1.1ms to 0.08ms