craft-preparse-field icon indicating copy to clipboard operation
craft-preparse-field copied to clipboard

Related entries count cache

Open oscaralexander opened this issue 3 years ago • 1 comments

I suppose you've had this request a gazillion times already, but for me this would be the holy grail in terms of performance. I have a products section and a creators section, and I'd love to cache the number of creators that use a certain product so I can sort products by popularity.

Right now, I have a products.productCreatorCount Preparse field that resolves craft.entries().section('creators').relatedTo(element).count(), but is obviously only updated when the product is saved, not the creator (i.e. when a Product is added to or removed from a Creator).

Is this feature remotely possible and considered for the Preparse roadmap?

oscaralexander avatar Feb 08 '21 08:02 oscaralexander

I am also looking for something very similar. Did you find any solutions?

terryupton avatar May 17 '22 23:05 terryupton