added middleware to handle the performance issue
added rails mem cache for performance
replace memcache to use redis