Rails Cache on Development Environment

Set perform caching to true inside config/environments/development.rb, you need to restart the server
config.action_controller.perform_caching = true
 
After that install memcached as a gem
gem install memcached
Add sudo if you are using system ruby, You can also use bundler

If you are getting this error
"DalliError: No server available"
Then you need to install memcached
sudo apt-get install memcached

Comments

Popular posts from this blog

Inserting and Moving elements inside Ruby Array

Difference between Validations, Callbacks and Observers