Added setting to toggle local search and to set the cache timeout