Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Related entries count cache #68

Open
oscaralexander opened this issue Feb 8, 2021 · 1 comment
Open

Related entries count cache #68

oscaralexander opened this issue Feb 8, 2021 · 1 comment

Comments

@oscaralexander
Copy link

oscaralexander commented Feb 8, 2021

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?

@terryupton
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants