---
title: "Cache / GetCacheViewHelper"
manual: "maps2 (Maps2)"
version: "13.1"
source: "AdministratorManual/Template/ViewHelpers/Cache/GetCacheViewHelper.rst"
rendered: "2026-10-01T12:50:05+00:00"
---

# Cache / GetCacheViewHelper {#viewhelper-get-cache}

This is a ViewHelper to retrieve a cache entry.

## General properties {#viewhelper-get-cache-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 {#viewhelper-get-cache-examples}

### Basic example {#viewhelper-get-basic-example}

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