From 4b1cb9052d4d047fd9831ffd89310c0d8f6c1ad4 Mon Sep 17 00:00:00 2001
From: Alex Scutaru <alex.scutaru@wearepropeople.com>
Date: Fri, 5 Apr 2013 10:21:43 -0700
Subject: [PATCH] Issue #1962584 by alex.scutaru: Clean ctools cache on panels
 common settings save.

---
 includes/common.inc |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/includes/common.inc b/includes/common.inc
index 120f0a7..0bc5160 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -361,6 +361,10 @@ function panels_common_settings_submit($form, &$form_state) {
     variable_set($module_name . '_allowed_types', $allowed_content_types);
   }
   drupal_set_message(t('Your changes have been saved.'));
+
+  //clean ctools cache to apply the new settings immediately
+  ctools_include('object-cache');
+  ctools_object_cache_clean(1);
 }
 
 /**
-- 
1.7.10.4

