You are here

function icon_clear_all_caches in Icon API 8

Same name and namespace in other branches
  1. 7 includes/cache.inc \icon_clear_all_caches()

Clears all caches used by the icon module.

10 calls to icon_clear_all_caches()
icon_bundle_delete in ./icon.module
Delete the icon bundle that matches {icon_bundle}.name in the database.
icon_bundle_disable in ./icon.module
Disable the icon bundle that matches {icon_bundle}.name in the database.
icon_bundle_enable in ./icon.module
Enable the icon bundle that matches {icon_bundle}.name in the database.
icon_bundle_save in ./icon.module
Save an icon bundle in the {icon_bundle} table.
icon_flush_caches in includes/cache.inc
Implements hook_flush_caches().

... See full list

File

includes/cache.inc, line 33
cache.inc Provides hooks and functions for cache related tasks.

Code

function icon_clear_all_caches() {
  \Drupal::cache()
    ->deleteAll('icon_');
  icon_reset_static_cache();

  // Rebuild icon data.
  icon_render_hooks();
  icon_providers();
  icon_bundles();
}