# enable-cache

```yaml
title: "Iconify Icon Web Component Function: enableCache"
functions:
  disableCache: "./disable-cache.md"
  addIcon: "./add-icon.md"
  addCollection: "./add-collection.md"
```

# Web component function: enableCache

This tutorial is part of [Iconify Icon web component tutorial](./index.md#functions).

`include icon-components/functions/cache/deprecated`

`include icon-components/functions/cache/intro-enable`

## Usage

`include icon-components/functions/cache/props`

## Storage types

`include icon-components/functions/cache/storage-types`

## Example

```yaml
src: icon-components/common/enable-cache.js
replacements:
  - search: "@iconify/react"
    replace: "iconify-icon"
```

## Notes

`include icon-components/functions/cache/notes`