You are here

function _key_clear_plugin_cache in Key 7.2

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

Helper function to clear key plugin caches.

2 calls to _key_clear_plugin_cache()
key_config_form in includes/key.admin.inc
Form constructor for the key configuration edit form.
key_get_providers in ./key.module
Gets information about all key providers.

File

./key.module, line 466
Provides the ability to manage keys, which can be used by other modules.

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);
  }
}