Fixed Typo + Undeclared variables within cache getters.

See https://github.com/bolt/bolt/issues/749