You are here

function apachesolr_environments_clear_cache in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 apachesolr.module \apachesolr_environments_clear_cache()
  2. 7 apachesolr.module \apachesolr_environments_clear_cache()

Clear all caches for environments.

10 calls to apachesolr_environments_clear_cache()
apachesolr_environment_delete in ./apachesolr.module
Function that deletes an environment
apachesolr_environment_save in ./apachesolr.module
Function that saves an environment
apachesolr_environment_variable_del in ./apachesolr.module
Get a named variable, or return the default.
apachesolr_environment_variable_set in ./apachesolr.module
Set a named variable, or return the default.
apachesolr_node_type_delete in ./apachesolr.module
Implements hook_node_type_delete().

... See full list

File

./apachesolr.module, line 1383
Integration with the Apache Solr search application.

Code

function apachesolr_environments_clear_cache() {
  cache_clear_all('apachesolr:environments', 'cache_apachesolr');
  drupal_static_reset('apachesolr_load_all_environments');
  drupal_static_reset('apachesolr_get_solr');
  if (module_exists('ctools')) {
    ctools_include('export');
    ctools_export_load_object_reset('apachesolr_environment');
  }
}