[BUGFIX] Remove wrong queryBuilder usage in prepareCacheFlush