app/models/page.rb
# NOTE: if you add caches IN THIS CLASS, then add them here:
if you add caches IN THIS CLASS, then add them here.
if you add caches IN THIS CLASS then add them here .
def clear_caches
    [
      "/pages/#{id}/glossary",
      "trait_bank/by_page/#{id}",
      "trait_bank/key_data/#{id}/v3/limit_#{KEY_DATA_LIMIT}"
    ].each do |cache|
      Rails.cache.delete(cache)
    end
  end
def clear_caches [ "/pages/#{id}/glossary" , "trait_bank/by_page/#{id}" , "trait_bank/key_data/#{id}/v3/limit_#{KEY_DATA_LIMIT}" ] . each do | cache | Rails . cache . delete ( cache ) end end
NOTE: if you add caches IN THIS CLASS, then add them here:
NOTE : if you add caches IN THIS CLASS then add them here :