Fix error on cache:clear (closes #62)