Add support for cache invalidation on bulk update

This overrides the `update` method on the `QuerySet` class to invalidate all the objects it references.