---
title: "Cache / GetCacheViewHelper"
manual: "maps2 (Maps2)"
version: "12.2"
permalink: "https://docs.typo3.org/permalink/jweiland/maps2:cache-getcacheviewhelper@12.2"
source: "AdministratorManual/Templates/ViewHelpers/Cache/GetCacheViewHelper.rst"
rendered: "2026-11-03T10:14:27+00:00"
---

# Cache / GetCacheViewHelper {#cache-getcacheviewhelper}

This is a ViewHelper to retrieve a cache entry.

## General properties {#general-properties}

-   **prefix**

    -   *Type:* string

    If you want you can define a prefix for the generated CacheIdentifier. Leave
    this value empty to use "infoWindow" as default value

-   **poiCollection**

    -   *Type:* PoiCollection
    -   *Required:* true

    You must assign the PoiCollection object to this ViewHelper. We extract some
    data from PoiCollection to build a more unique CacheIdentifier which can differ
    Caches in multilingual environment.

## Examples {#examples}

### Basic example {#basic-example}

```html
{maps2:cache.getCache(poiCollection: poiCollection)}
```
