Wrap rebuild_depth_cache! in a transaction
Merge pull request #167 from mjc/patch-1

Wrap rebuild_depth_cache! in a transaction