Index: includes/export.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ctools/includes/export.inc,v
retrieving revision 1.17
diff -u -p -r1.17 export.inc
--- includes/export.inc	17 Jul 2009 17:04:36 -0000	1.17
+++ includes/export.inc	26 Jul 2009 21:46:59 -0000
@@ -44,11 +44,18 @@ define('EXPORT_IN_CODE', 0x02);
  *       must be in the schema for this table or errors will result.
  * @param $args
  *   An array of arguments whose actual use is defined by the $type argument.
+ * @param $reset
+ *   Set to TRUE to reset static cache.
  */
-function ctools_export_load_object($table, $type = 'all', $args = array()) {
+function ctools_export_load_object($table, $type = 'all', $args = array(), $reset = TRUE) {
   static $cache = array();
   static $cached_database = array();
 
+  if ($reset) {
+    $cache = array();
+    $cached_database = array();
+  }
+
   $schema = ctools_export_get_schema($table);
   $export = $schema['export'];
 
