Index: branches/5.1.x/core/units/helpers/language_import_helper.php =================================================================== diff -u -N -r13151 -r13168 --- branches/5.1.x/core/units/helpers/language_import_helper.php (.../language_import_helper.php) (revision 13151) +++ branches/5.1.x/core/units/helpers/language_import_helper.php (.../language_import_helper.php) (revision 13168) @@ -1,6 +1,6 @@ _initImportTables(true); + $this->changedPrefixes = array_unique($this->changedPrefixes); + foreach ($this->changedPrefixes as $prefix) { + $this->Application->incrementCacheSerial($prefix); + } + if ($this->_debugMode) { $this->Application->Debugger->appendHTML(__CLASS__ . '::' . __FUNCTION__ . '("' . $filename . '"): ' . (getmicrotime() - $start_time)); } @@ -331,6 +343,9 @@ FROM ' . $this->_tables[$prefix] . ' WHERE ' . $unique_field . ' IN (' . implode(',', $to_insert) . ')'; $this->Conn->Query($sql); + + // new records were added + $this->changedPrefixes[] = $prefix; } // perform update for records, that are present in live table @@ -370,6 +385,11 @@ } $this->Conn->Query($sql); + + if ($this->Conn->getAffectedRows() > 0) { + // existing records were updated + $this->changedPrefixes[] = $prefix; + } } }