summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2011-05-19 15:05:32 -0400
committerspiderr <spider@viovio.com>2011-05-19 15:05:32 -0400
commitce1ece33b65793f5145c84641c2d530ab89fd5ce (patch)
treeb3d6702573feddbf64c2f1e2f1ca59b7f94f34f7
parent59c411475fd0689464c9dd043b0d34ce6001c1c1 (diff)
downloadlanguages-ce1ece33b65793f5145c84641c2d530ab89fd5ce.tar.gz
languages-ce1ece33b65793f5145c84641c2d530ab89fd5ce.tar.bz2
languages-ce1ece33b65793f5145c84641c2d530ab89fd5ce.zip
force clearCache after storeTranslation
-rw-r--r--BitLanguage.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/BitLanguage.php b/BitLanguage.php
index 1a8c1ca..b031171 100644
--- a/BitLanguage.php
+++ b/BitLanguage.php
@@ -388,7 +388,8 @@ class BitLanguage extends BitBase {
$query = "INSERT INTO `".BIT_DB_PREFIX."i18n_strings` (`lang_code`,`trans`,`source_hash`, `last_modified`) values (?,?,?,?)";
$result = $this->mDb->query( $query, array( $pLangCode, $pString, $pSourceHash, time() ) );
}
-
+ // pretty brutal on mass-saving, but cache always needs purging after translation saved.
+ $this->clearCache();
$this->mStrings[$pLangCode][$pSourceHash]['trans'] = $pString;
}