fixed typo in attribute name and variable name

just from "cahe" to "cache"