After updating the database, automatically regenerate cache.