customink / secondbase

Seamless second database integration for Rails.
MIT License
220 stars 30 forks source link

Make SecondBase Query Cache Module #22

Closed metaskills closed 8 years ago

metaskills commented 8 years ago

Import into ActionController::Base via around around filter.

def mysql_query_cache
  SecondBase::Base.connection.cache { yield }
end
metaskills commented 8 years ago

Added simple docs to the README.