Skip to content

Make query recorders more consistent

charlie ablett requested to merge 360896-cablett-cache-middleware into master

When running tests, the cache is cleared a bit inconsistently and it can lead to some funny behaviour like !85399 (comment 927714587).

Also, some extra License checks occasionally occur due to how the cache is cleared and some interesting interactions with some other aspects of our testing suite, such as throttling user updates (e.g. last sign in).

This MR makes the cache clearing behaviour in tests more consistent and ignores License SQL calls in query recorders. It may unearth some N+1 problems. (it didn't! hooray!)

Related to #360896

Edited by charlie ablett

Merge request reports