From 66b0e10df0e32917de15e3072fec0b59fb527f81 Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Thu, 22 Oct 2009 02:26:16 +0000 Subject: [PATCH] Clear export object cache, comment. --- feeds_ui/feeds_ui.admin.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/feeds_ui/feeds_ui.admin.inc b/feeds_ui/feeds_ui.admin.inc index 016e49df..9eca7ac7 100644 --- a/feeds_ui/feeds_ui.admin.inc +++ b/feeds_ui/feeds_ui.admin.inc @@ -140,9 +140,13 @@ function feeds_ui_overview_form_submit($form, &$form_state) { } variable_set('default_feeds_importer', $disabled); - // Clear caches. + // Clear caches: reset export cache, as objects have been enabled/disabled, + // reset node type cache, as some features provide content types, rebuild + // menu as content type changes or importer enabling/disabling can have + // impact on node/add/ or import/. + ctools_include('export'); + ctools_export_load_object_reset('feeds_importer'); node_get_types('types', NULL, TRUE); - cache_clear_all(); menu_rebuild(); } -- GitLab