Add ability to flush cache and fix another typo