function apachesolr_environments_clear_cache in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr.module \apachesolr_environments_clear_cache()
- 6.3 apachesolr.module \apachesolr_environments_clear_cache()
Clear all caches for environments.
12 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().
File
- ./
apachesolr.module, line 1402 - 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');
}
}