Fix typos in cache expiration method