Index: includes/export.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/ctools/includes/export.inc,v retrieving revision 1.19 diff -u -p -r1.19 export.inc --- includes/export.inc 17 Aug 2009 18:41:04 -0000 1.19 +++ includes/export.inc 21 Aug 2009 17:27:59 -0000 @@ -78,11 +78,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) { + unset($cache[$table]; + unset($cached_database[$table]); + } + $schema = ctools_export_get_schema($table); $export = $schema['export'];