Cleaner method of handling taps on the cache/uncache buttons.