lib/app_manager/model.rb in app_manager-2.2.4 vs lib/app_manager/model.rb in app_manager-2.3.0

- old
+ new

@@ -401,11 +401,11 @@ end end def fetch_static_remaining_days - @remaining_cache_key = "app-manager-cache/#{self.shopify_domain}-remaining_days" + @remaining_cache_key = "app-manager-cache/#{ENV['SHOPIFY_APP_SLUG']}/#{self.shopify_domain}-remaining_days" if fetch_cached_static_remaining_days(@remaining_cache_key).present? return fetch_cached_static_remaining_days(@remaining_cache_key) end remaining_days = self.get_remaining_days Rails.cache.write(@remaining_cache_key, remaining_days, expires_in: AppManager.configuration.expires_in) @@ -418,10 +418,10 @@ end end def fetch_static_get_charge - @get_charge_key = "app-manager-cache/#{self.shopify_domain}-get_charge" + @get_charge_key = "app-manager-cache/#{ENV['SHOPIFY_APP_SLUG']}/#{self.shopify_domain}-get_charge" if fetch_cached_static_get_charge(@get_charge_key).present? return fetch_cached_static_get_charge(@get_charge_key) end charge = self.get_charge Rails.cache.write(@get_charge_key, charge, expires_in: AppManager.configuration.expires_in)