You are here

function feeds_cache_clear in Feeds 7

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_cache_clear()
  2. 6 feeds.module \feeds_cache_clear()
  3. 7.2 feeds.module \feeds_cache_clear()

Resets importer caches. Call when enabling/disabling importers.

Related topics

4 calls to feeds_cache_clear()
FeedsConfigurable::configFormSubmit in includes/FeedsConfigurable.inc
Submission handler for configForm().
feeds_ui_create_form_submit in feeds_ui/feeds_ui.admin.inc
Submit handler for feeds_build_create_form().
feeds_ui_delete_form_submit in feeds_ui/feeds_ui.admin.inc
Submit handler for feeds_ui_delete_form().
feeds_ui_overview_form_submit in feeds_ui/feeds_ui.admin.inc
Submit handler for feeds_ui_overview_form().

File

./feeds.module, line 665
Feeds - basic API functions and hook implementations.

Code

function feeds_cache_clear($rebuild_menu = TRUE) {
  cache_clear_all('_feeds_importer_digest', 'cache');
  drupal_static_reset('_feeds_importer_digest');
  ctools_include('export');
  ctools_export_load_object_reset('feeds_importer');
  drupal_static_reset('_node_types_build');
  if ($rebuild_menu) {
    menu_rebuild();
  }
}