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
| Name | Type | Description |
|---|---|---|
| $extra | array | Contributions, keyed by contributor. |
| $view | \View | The View being rendered. |
| $entry | \Entry|\Entry_Collection | The entry, or the resolved collection. |
| $context | string | RenderContext::SINGLE or RenderContext::DIRECTORY. |
| $view_fields | array | The resolved field set, as Renderer::get_view_fields() built it. |
Since
- 2.0
Source
Defined in src/Pdf/Cache.php at line 747