allow to disable the use_persistent_connections seeting in shardcache

and fixed the logic which allows to override the evict_on_delete setting