You could use tb.should_cache() instead