diff options
| author | spiderr <spider@viovio.com> | 2011-05-19 15:05:32 -0400 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2011-05-19 15:05:32 -0400 |
| commit | ce1ece33b65793f5145c84641c2d530ab89fd5ce (patch) | |
| tree | b3d6702573feddbf64c2f1e2f1ca59b7f94f34f7 | |
| parent | 59c411475fd0689464c9dd043b0d34ce6001c1c1 (diff) | |
| download | languages-ce1ece33b65793f5145c84641c2d530ab89fd5ce.tar.gz languages-ce1ece33b65793f5145c84641c2d530ab89fd5ce.tar.bz2 languages-ce1ece33b65793f5145c84641c2d530ab89fd5ce.zip | |
force clearCache after storeTranslation
| -rw-r--r-- | BitLanguage.php | 3 |
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; } |
