How do I flush the query cache?
Craft is using the default Yii queryCache component, which is set to the file system cache by default (i.e., what's in storage/runtime/cache.

There's no way to clear specific items in that cache, but you can clear all of it with Craft::$app-&gt;getCache()-&gt;flush().