Counter cache for average

Hello list,

I’m curious if Rails has built-in support similar to :counter_cache
for other type of aggregate values such as average, min, max, etc?

If not, does a plugin exist that adds this functionality to Rails?

Apologies, but I’m afraid this may have gotten lost in the shuffle.
Anyone have any ideas on this?

Robert W. wrote:

Apologies, but I’m afraid this may have gotten lost in the shuffle.
Anyone have any ideas on this?

If it helps I wrote a blog post on how to write custom counter caches,
this could easily be modified to do whatever you want…

Hope it helps.