Use the full path for template cache.
Use << instead of + to concat strings in ruby.