Skip to content

Cache Control

Cache control allows you to configure caching behavior for parsing operations, controlling whether results are cached and whether existing cache should be invalidated.

By default, LlamaParse caches parsing results to improve performance on repeated requests. Cache control allows you to disable this caching when you need fresh results or want to ensure no cached data is used.

Disable caching for the current parsing request. This both prevents caching of new results and invalidates any existing cache.

{
"disable_cache": true
}

Allow normal caching behavior. This is the default setting when the parameter is not specified.

{
"disable_cache": false
}
  • Fresh Results: Ensure LlamaParse processes the document anew each time
  • Testing: Get consistent results during development and testing
  • Performance Testing: Measure parsing performance without cache influence
  • Debugging: Isolate parsing issues by eliminating cached results
Terminal window
curl -X 'POST' \
'https://api.cloud.llamaindex.ai/api/v2/parse' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LLAMA_CLOUD_API_KEY" \
--data '{
"file_id": "<file_id>",
"tier": "agentic",
"version": "latest",
"disable_cache": true
}'