The exit does need to be there in order to show just the JSON . All the functions below are hit by going to certain URLs such as http://orangesaregreat.com/mliao/?lf_clear_cache=1. They're not intended to be user-facing, they're just for our use when debugging people's plugin issues.