Skip to content

Instantly share code, notes, and snippets.

@okabe-yuya
Last active August 20, 2020 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okabe-yuya/549fdda2245767b4bc70680b3301172b to your computer and use it in GitHub Desktop.
Save okabe-yuya/549fdda2245767b4bc70680b3301172b to your computer and use it in GitHub Desktop.
ActiveRecordにて明示的にcachedをクリアする構文
ActiveRecord::Base.connection.query_cache.clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment