Skip to content

Overriding format and specifying srcset-style sizes when eager loading asset transforms #10599

Answered by brandonkelly
BigglesZX asked this question in Q&A
Discussion options

You must be logged in to vote

Yep that’s exactly correct! The reason it may not be drastically reducing query count initially is because withTransforms will only eager-load transforms that were already generated previously. So if it’s a new asset, or you’ve recently edited/replaced the asset, or you’ve added new transform sizes, it’s expected that you will start seeing an increase in DB queries again, until all the new transforms have been generated.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BigglesZX
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants