raise ArgumentError for invalid calls to render_cached