Introduce Query.purge_cached.