@shadyvb I think removing the comment from `db call okay` kinda masks the problem, which is that this single line can have 2 problems: (1) using direct DB query and (2) not caching the result. If you add `db call ok` to eliminate the 1st problem, it also results in the 2nd problem not getting skipped because `$whitelisted` gets set to then short-circuit the check for using cache.

Does there need to be another PHPCS directive for allowing the cache to be skipped? Probably not. So I think all that is needed here is to not short-circuit when `$whitelisted` for doing the cache checks, so that they'll be checked even if `db call ok`.

Does that make sense?