Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is it possible to disable cache while in development environment ?
Hi there
What are you referring to by cache?
The fact that the REST API doesn't instantly update?
Hi, yeah i assumed it was cache. I can call the rest api 4 / 5 times after publishing content before changes are reflected from within the json
That's intended behavior.
Every two minutes we make a POST call to update the data in Cloudflare which is what gets returned when you make a GET call to the REST API.
It's a measure again burst calls that could potentially put a strain on our APIs.
Since it's part of the infrastructure, you won't be able to disable it.
GraphQL on the other hand updates instantly.
Would there be a way to replicate the data from the content api via graph ql ? Im new to graph ql but understand you cant just grab everything. Also when deploying from dev to production will that reset the cache for the production endpoints ?
You can return the same content data using GrahpQL that you get out of the content API.
You'll just need to ask for it in a custom query :)
When it comes to deploying it only covers the schemas such as document or data types. Not content/media
You can use a content transfer/restore to do move content between envs.
That doesn't reset the cache but just updates it just like any content update via the backoffice.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Disable Cache
Is it possible to disable cache while in development environment ?
Hi there
What are you referring to by cache?
The fact that the REST API doesn't instantly update?
Hi, yeah i assumed it was cache. I can call the rest api 4 / 5 times after publishing content before changes are reflected from within the json
That's intended behavior.
Every two minutes we make a POST call to update the data in Cloudflare which is what gets returned when you make a GET call to the REST API.
It's a measure again burst calls that could potentially put a strain on our APIs.
Since it's part of the infrastructure, you won't be able to disable it.
GraphQL on the other hand updates instantly.
Would there be a way to replicate the data from the content api via graph ql ? Im new to graph ql but understand you cant just grab everything. Also when deploying from dev to production will that reset the cache for the production endpoints ?
You can return the same content data using GrahpQL that you get out of the content API.
You'll just need to ask for it in a custom query :)
When it comes to deploying it only covers the schemas such as document or data types. Not content/media
You can use a content transfer/restore to do move content between envs.
That doesn't reset the cache but just updates it just like any content update via the backoffice.
is working on a reply...