actually fix the clear-cache bug properly