Hi,
Most pages of the website I'm building are loading in 30-100ms in dev.
If I load a prismic document, the loading time increases around 300-800ms in dev.
In preprod env. (dedicated server) the loading time is badly impacted by prismic too.
From 100ms (without Prismic) to 500-600ms (with Prismic).
The user guides tells that cached response time is around 25ms but that's not what I experiment.
$api = Api::get("https://winesmart.cdn.prismic.io/api/v2");
$document = $api->getByUID('page', 'my-slug');
Here is a sample url generated by the php kit (~100-350ms loading time)
https://winesmart.cdn.prismic.io/api/v2/documents/search?page=1&pageSize=20&ref={"_tracker"%3A"9pVevxDO"}&q=[[%3Ad%20%3D%20at(my.page.uid%2C%20"mentions-legales")]]&lang=*
Can you tell me if i do something wrong ?
How to contain loading time in a decent range ?
Do I have to use caching system ?
Thanks.