map:map:ReferenceError: cache is not defined