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.
As I noticed in #1811816-30: Benchmark node_page_default vs. node view, we're executing *a lot* of checksum tag queries, that should not be happening.
There are other issues and more plans to improve cache tag handling, but these might or might not make it into 8.x. Fixing this is a must I think and should be relatively simple to fix, as it's not supposed to happen.
Comment | File | Size | Author |
---|---|---|---|
#1 | remove-config-cache-tags.patch | 1.75 KB | Berdir |
Comments
Comment #1
BerdirOk, there might be more but this is probably the biggest offender.
Config/CachedStorage adds a default tag that is the same as the actual cache cid. Removing that gets the checksum queries on the frontpage from 47 down to 10.
Comment #2
olli CreditAttribution: olli commentedLooks good to me - similar numbers here, and can't find code invalidating those tags. This actually revealed that the static $tagCache works only for invalidated tags.
Comment #3
catchNice find. Three lashes to the person who committed the original patch (self-flagellates).
Comment #4
catchCommitted/pushed to 8.x.