# Should vLLM consider prefix caching when chunked prefill is enabled?

**URL:** <https://discuss.vllm.ai/t/should-vllm-consider-prefix-caching-when-chunked-prefill-is-enabled/903>\
**Category:** General\
**Created:** [June 24, 2025, 3:33am UTC](https://discuss.vllm.ai/t/should-vllm-consider-prefix-caching-when-chunked-prefill-is-enabled/903 "2025-06-24T03:33:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YjyJeff](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/yjyjeff/32/408_2.png) [@YjyJeff](https://discuss.vllm.ai/u/YjyJeff)\
**Post date:** [June 24, 2025, 3:33am UTC](https://discuss.vllm.ai/t/should-vllm-consider-prefix-caching-when-chunked-prefill-is-enabled/903/1 "2025-06-24T03:33:37Z")

</div>

Hi, I am curious about how vLLM V1 works and am currently reading its source code. I find that when a request is running, the scheduler will not consider prefix caching anymore. I think it makes sense in most of the cases. However, when chunked prefill is enabled, a long prompt is split into multiple chunks. In this case, only the first chunk leverages prefix caching during execution, which may result in suboptimal cache utilization.

---

<div class="post-metadata">

**Author:** ![RunLLM](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/runllm/32/233_2.png) [@RunLLM](https://discuss.vllm.ai/u/RunLLM)\
**Post date:** [June 24, 2025, 3:34am UTC](https://discuss.vllm.ai/t/should-vllm-consider-prefix-caching-when-chunked-prefill-is-enabled/903/2 "2025-06-24T03:34:04Z")

</div>

You are correct: in vLLM V1, when chunked prefill is enabled, only the first chunk of a long prompt benefits from prefix caching. After the initial chunk, subsequent chunks are treated as running requests, and the scheduler does not re-check for prefix cache hits, which can lead to suboptimal cache utilization. This is a known limitation and has been discussed in the community, with suggestions to improve the scheduler to be more prefix-cache-aware during chunked prefill execution, but as of now, this behavior is by design and not yet addressed in the mainline codebase. See the discussion in [vllm/issues/7883](https://github.com/vllm-project/vllm/issues/7883) and the design docs for [prefix caching](https://github.com/vllm-project/vllm/blob/main/docs/design/v1/prefix_caching.md).

Would you like more detail on the technical reasons for this behavior or possible workarounds?

Sources:

- [vllm/issues/7883](https://github.com/vllm-project/vllm/issues/7883)
- [prefix\_caching.md](https://github.com/vllm-project/vllm/blob/main/docs/design/v1/prefix_caching.md)

---

<div class="post-metadata">

**Author:** ![jundon3x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.vllm.ai/jundon3x/32/1516_2.png) [@jundon3x](https://discuss.vllm.ai/u/jundon3x)\
**Post date:** [June 30, 2026, 8:13am UTC](https://discuss.vllm.ai/t/should-vllm-consider-prefix-caching-when-chunked-prefill-is-enabled/903/3 "2026-06-30T08:13:16Z")

</div>

Hi, what’s the status currently, is it still only the first chunk of a long prompt that can benefit from the prefix cache?
