should not raise error trying to flush empty cache