Benefits of image_url
template tag
#10966
Replies: 1 comment
-
Replies from Slack
|
Beta Was this translation helpful? Give feedback.
image_url
template tag
#10966
-
Replies from Slack
|
Beta Was this translation helpful? Give feedback.
-
Copying a discussion thread started in Slack for future reference – and possibly wider input
Hi #performance-working-group, I’d like your thoughts on the following paragraph in our docs, about the
image_url
template tag (https://docs.wagtail.org/en/stable/advanced_topics/performance.html#image-urls):I have the impression this makes the
image_url
sound better than it seems? On:And on this bit:
Do we have a benchmark for this? This seems true to me but only when the page load involves hitting the DB or cache for images. And if we don’t consider images to be part of the page load (fair).
If the page load doesn’t touch the DB for images (template fragment caching or reverse proxy response caching), then:
image_url
andimage
. Depends on the performance of the specific Django view that serves the images.image_url
– the request has to go to Wagtail first and then redirect to another path.Does that sound accurate?
There are two factors I’m not sure what to do with:
Beta Was this translation helpful? Give feedback.
All reactions