gru: add debug option for cache flushing