Skip to main content

Filter: gfpdf_gv_cache_key_extra

Extra components for a render's cache key.

For anything that conditionally changes the rendered bytes — the opt-in directory request params, or a feature like the Static Maps settings, which re-frame an image while selecting nothing.

Additive: what is returned is added to the key, never substituted for it. Contribute nothing unless the render is one your feature affects, since every component is a dimension an unauthenticated client can vary to mint keys for byte-identical documents.

Parameters

NameTypeDescription
$extraarrayContributions, keyed by contributor.
$view\ViewThe View being rendered.
$entry\Entry|\Entry_CollectionThe entry, or the resolved collection.
$contextstringRenderContext::SINGLE or RenderContext::DIRECTORY.
$view_fieldsarrayThe resolved field set, as Renderer::get_view_fields() built it.

Since

  • 2.0

Source

Defined in src/Pdf/Cache.php at line 747