Skip to content

Commit

Permalink
Invalidate MiqProductFeature cache when saving a Tenant record
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman authored and kbrock committed Nov 6, 2020
1 parent 826da1b commit f56f6d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/tenant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Tenant < ApplicationRecord

before_save :nil_blanks
after_create :create_tenant_group, :create_miq_product_features_for_tenant_nodes
after_save -> { MiqProductFeature.invalidate_caches }
before_destroy :ensure_can_be_destroyed

def self.scope_by_tenant?
Expand Down

0 comments on commit f56f6d4

Please sign in to comment.