add option to purge internal cache