Method: StandardModel#clear_cache
- Defined in:
- lib/app/models/concerns/standard_model.rb
#clear_cache ⇒ Object
Clear the cache
199 200 201 202 203 204 205 206 207 |
# File 'lib/app/models/concerns/standard_model.rb', line 199 def clear_cache Rails.cache.delete_matched "*#{id}*" return unless respond_to?(:account) && account.present? && account.is_a?(Account) Rails.cache.delete_matched "*#{account.id}*" true # Force a return of true so that we don't break the callback chain. rescue StandardError true end |