Fix for purge_batch_cache, and _check_full_sync