跳转到主要内容

disable-cache

title: 'Iconify SVG Framework Function: disableCache'
functions:
  enableCache: './enable-cache.md'
  addIcon: './add-icon.md'
  addCollection: './add-collection.md'

SVG framework function: disableCache

This tutorial is part of Iconify SVG Framework functions tutorial.

include: icon-components/functions/cache/intro-disable
replacements:
  - search: component
    replace: SVG framework

Usage

include icon-components/functions/cache/props

Storage types

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

Examples

// Disable caching in localStorage
Iconify.disableCache('local');

Another example:

// Disable all caching
Iconify.disableCache('all');

Notes

include icon-components/functions/cache/notes