Bug fix; `clear_cache()` and related purging routines.