correctly handle the formatter parameter in the cache and in Metadata