diff --git a/app/controllers/ops_controller/ops_rbac.rb b/app/controllers/ops_controller/ops_rbac.rb
index 72c518a8c64..8af3cbff5cc 100644
--- a/app/controllers/ops_controller/ops_rbac.rb
+++ b/app/controllers/ops_controller/ops_rbac.rb
@@ -22,11 +22,6 @@ def role_allows?(**options)
super(options)
end
- def invalidate_miq_product_feature_caches
- MiqProductFeature.invalidate_caches
- render :json => {}
- end
-
# Edit user or group tags
def rbac_tags_edit
case params[:button]
diff --git a/app/javascript/components/ops-tenant-form/ops-tenant-form.jsx b/app/javascript/components/ops-tenant-form/ops-tenant-form.jsx
index 7122a9c247b..8cfa3e5a6f2 100644
--- a/app/javascript/components/ops-tenant-form/ops-tenant-form.jsx
+++ b/app/javascript/components/ops-tenant-form/ops-tenant-form.jsx
@@ -40,7 +40,6 @@ const OpsTenantForm = ({
const save = (values, method, url, message) => {
miqSparkleOn();
return API[method](url, values, { skipErrors: [400] })
- .then(() => http.post('/ops/invalidate_miq_product_feature_caches', {}))
.then(() => miqRedirectBack(message, 'success', redirectUrl))
.catch((...args) => {
miqSparkleOff();
diff --git a/app/javascript/spec/ops-tenant-form/ops-tenant-form.spec.js b/app/javascript/spec/ops-tenant-form/ops-tenant-form.spec.js
index 83802beece4..86389f67f4a 100644
--- a/app/javascript/spec/ops-tenant-form/ops-tenant-form.spec.js
+++ b/app/javascript/spec/ops-tenant-form/ops-tenant-form.spec.js
@@ -176,7 +176,6 @@ describe('OpstTenantForm', () => {
resources: [],
});
fetchMock.postOnce('/api/tenants', {});
- fetchMock.postOnce('/ops/invalidate_miq_product_feature_caches', {});
const wrapper = mount();
wrapper.find('input').at(0).simulate('change', { target: { value: 'foo' } });
wrapper.find('input').at(1).simulate('change', { target: { value: 'bar' } });
@@ -210,7 +209,6 @@ describe('OpstTenantForm', () => {
resources: [],
});
fetchMock.putOnce('/api/tenants/123', {});
- fetchMock.postOnce('/ops/invalidate_miq_product_feature_caches', {});
let wrapper;
await act(async() => {
wrapper = mount();
diff --git a/config/routes.rb b/config/routes.rb
index d0fe2254ad1..8f0eca5a7d1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -2366,7 +2366,6 @@
forest_form_field_changed
forest_select
help_menu_form_field_changed
- invalidate_miq_product_feature_caches
label_tag_mapping_delete
label_tag_mapping_edit
label_tag_mapping_update
diff --git a/spec/controllers/ops_controller/ops_rbac_spec.rb b/spec/controllers/ops_controller/ops_rbac_spec.rb
index 713ab602dd6..19fa88de830 100644
--- a/spec/controllers/ops_controller/ops_rbac_spec.rb
+++ b/spec/controllers/ops_controller/ops_rbac_spec.rb
@@ -9,13 +9,6 @@
allow(controller).to receive(:data_for_breadcrumbs).and_return([{:title => "title", :action => "action", :key => "key"}])
end
- it 'confirms existence of route and action with name invalidate_miq_product_feature_caches ' do
- EvmSpecHelper.local_miq_server
-
- post :invalidate_miq_product_feature_caches
- expect(response.status).to eq(200)
- end
-
describe "#rbac_edit_tags_reset" do
let(:admin_user) { FactoryBot.create(:user, :role => "super_administrator") }
let(:another_tenant) { FactoryBot.create(:tenant) }