Update erb generator with configurable caches