Update openstandard cache before updating db

Reduce chance of broken images during deploy
NIT: Odd indentation.