Clear all caches when the clear caches button is pressed.