function _glossary_clear_cache in Glossary 6
Same name and namespace in other branches
- 5.2 glossary.module \_glossary_clear_cache()
- 5 glossary.module \_glossary_clear_cache()
- 7 glossary.module \_glossary_clear_cache()
2 calls to _glossary_clear_cache()
- glossary_filter_form_submit in ./
glossary.admin.inc - glossary_taxonomy in ./
glossary.module - Implementation of hook_user().
1 string reference to '_glossary_clear_cache'
File
- ./
glossary.module, line 1281 - Glossary terms will be automatically marked with links to their descriptions.
Code
function _glossary_clear_cache($format = NULL) {
// We could throw less things away if we checked which filter formats
// used the glossary filter, and we only threw those away. In practice,
// most if not all formats would use the glossary filter, so we just
// get rid of them all.
if ($format) {
$wildcard = $format . ':';
}
else {
$wildcard = '*';
}
cache_clear_all($wildcard, 'cache_filter', TRUE);
drupal_set_message(t('The filter cache has been cleared. There may be a temporary performance degradation while it is rebuilt.'));
}