add more caching and mod production.rb file