function _flag_lists_clear_cache in Flag Lists 6
Same name and namespace in other branches
- 7.3 flag_lists.module \_flag_lists_clear_cache()
- 7 flag_lists.module \_flag_lists_clear_cache()
Clear the flag cache.
This is a less severe cache clear than provided by flag. All flag lists users must be authorized, so we don't need to flush the page cache. For now, flag lists titles won't be in the menu, so no need to clear that.
2 calls to _flag_lists_clear_cache()
- flag_lists_fl_delete in ./
flag_lists.module - Delete a flag_lists flag.
- flag_lists_form_submit in ./
flag_lists.admin.inc - Save a list.
File
- ./
flag_lists.module, line 674 - The Flag Lists module.
Code
function _flag_lists_clear_cache() {
// We're not using _flag_clear_cache because we probably don't need the menu
// rebuild and don't need to clear the page cache.
if (module_exists('views')) {
views_invalidate_cache();
}
}