You are here

function _crumbs_admin_flush_cache in Crumbs, the Breadcrumbs suite 7.2

Submit callback registered on crumbs admin forms in addition to the usual system_settings_form stuff.

1 call to _crumbs_admin_flush_cache()
_crumbs_admin_display_submit_flush_cache in admin/crumbs.admin.inc
Additional submit handler for crumbs_admin_display_form, that will flush the crumbs-related caches.
2 string references to '_crumbs_admin_flush_cache'
crumbs_admin_entity_parent_form in admin/crumbs.entity_parent.inc
Form builder callback for admin/structure/crumbs/entity-parent/$type.
crumbs_admin_weights_form in admin/crumbs.admin.inc
The form displayed on admin/structure/crumbs(/weights)

File

includes/crumbs.callbacks.inc, line 205

Code

function _crumbs_admin_flush_cache() {

  // This will only hit the 'cache_page' and 'cache_block' cache bins.
  cache_clear_all();

  // Clear plugin info in 'cache' cache bin.
  crumbs()->pluginInfo
    ->flushCaches();
}