This article shows about cacing data & session management with Ruby on Rails.
Add the following “redis-rails“ to your
# Redis stores
bundle install on your terminal.
Add the following to your environment variable or
Configure to use Redis for cache store is as follows:
If you want to use Redis as a backend for sessions, you should also set:
If you want to skip to cache on TEST environment, please set NullStore:
- caching - is Rails.cache purged between tests? - Stack Overflow
🖥 Recommended VPS Service
VULTR provides high performance cloud compute environment for you.
Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour).
In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!