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