Movatterモバイル変換


[0]ホーム

URL:


  1. Home
  2. Reference documentation
  3. VCL reference
  4. Variables in VCL

Segmented caching

When you set the VCL variablereq.enable_segmented_caching totrue invcl_recv, you enable a mode, referred to as segmented caching, in which Varnish retrieves and caches files from the origin in segments. Segmented caching was previously known as LFS.

In this mode Varnish will spawn one or more sub-requests, each responsible for a segment of the file. Each segment is cached independently of other segments that constitute the file.

Whenvcl_log runs in the context of such a sub-request,segmented_caching.is_inner_req evaluates totrue. This call tovcl_log allows you to log the outcome of each segment.

After the sequence of sub-requests has completed,vcl_log will run withsegmented_caching.is_outer_req evaluating totrue. This call tovcl_log allows you to log the final outcome of the request.


[8]ページ先頭

©2009-2025 Movatter.jp