Skip to content

Related entries count cache #68

@oscaralexander

Description

@oscaralexander

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions