content_clear_type_cache
- Versions
- 5
content_clear_type_cache()- 6
content_clear_type_cache($rebuild_schema = FALSE)
Clear the cache of content_types; called in several places when content information is changed.
Code
contrib/cck/content.module, line 1547
<?php
function content_clear_type_cache($rebuild_schema = FALSE) {
cache_clear_all('*', content_cache_tablename(), TRUE);
_content_type_info(TRUE);
// Refresh the schema to pick up new information.
if ($rebuild_schema) {
$schema = drupal_get_schema(NULL, TRUE);
}
if (module_exists('views')) {
// Needed because this can be called from .install files
module_load_include('module', 'views');
views_invalidate_cache();
}
}
?>


