Only force logging opening statement if cachepollperiod is set