The class atg.repository.RepositoryViewImpl provides the method invalidateQueryCache(), which clears the query cache:

public void invalidateQueryCache()