You are here

function _key_clear_plugin_cache in Key 7.3

Same name and namespace in other branches
  1. 7 key.module \_key_clear_plugin_cache()
  2. 7.2 key.module \_key_clear_plugin_cache()

Helper function to clear key plugin caches.

Parameters

string|null $type: The plugin type or NULL to clear all caches.

2 calls to _key_clear_plugin_cache()
key_config_form in includes/key.admin.inc
Form constructor for the key configuration form.
key_get_plugins in ./key.module
Gets information about all key plugins of the requested type.

File

./key.module, line 705
Main Key functionality and hook implementations.

Code

function _key_clear_plugin_cache($type = NULL) {
  if ($type) {
    cache_clear_all("plugins:key:{$type}", 'cache');
  }
  else {
    cache_clear_all('plugins:key:', 'cache', TRUE);
  }
}