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.
So as it seems now token flushing in case of problems becomes commonly accepted practice, would be nice to have per-token cache so if module wanted to clear only some tokens, entire cache wouldn't be lost. It seems now too many modules may clear entire token cache, rendering it useless in many cases.
Comments
Comment #1
crea CreditAttribution: crea commentedAnyone ? We are now using very inefficient practice of flushing entire cache. For example of inefficiency see #529186: Usage of global token breaks default page titles because of early Token caching
Comment #2
Cyberwolf CreditAttribution: Cyberwolf commentedSubscribing.
Comment #3
jeeba CreditAttribution: jeeba commentedSuscribing too, problems with the pagin and tokens in www.amarilysfloreria.com
Comment #4
EvanDonovan CreditAttribution: EvanDonovan commentedSubscribing.
Comment #5
pacufist CreditAttribution: pacufist commentedIt seems still not solved in "6.x-1.18".
In function token_get_values() :
Why not this way ?:
For example, now page_title_page_get_title() clears all 'node' tokens. But need only 'global' :(