Adds cache invalidation on class.update_counters

Invalidate cache on update_counters class method. This method takes an array of ids so we fetch and expire cache for each.

@dylanahsmith @tjoyal can you take a look please, thanks!

cc @ViSovari @disaacs