get main_conf_t from request instead of an additional parameter
refactor rotate_cache method to support a different number of expected files on cache
stop purging files when purge request is canceled
stop scan on redis when purge request is canceled