Remove dbcheck_ts in a different way. Hopefully fixing #732 once and for all.
Added a section 'caching' to the config. Made caching of the config itself configurable.