Initialize the static sentence cache which contains word counts of each sentence.
The pre-cached wordcounts are used for searching similar things, match percent comparison is based on these numbers, becasue not all words of the SIMILAR strings will be loaded from the database on FindSimilar(), only those words what this searched string also has. Thus complete word-word percent comparsion needs this length data.
Sets TranslationString::$SentenceLengthCache
Definition at line 126 of file TranslationString.php.
References $DB, $SentenceLengthCache, GetDbConn(), and GetTables().
Referenced by CacheIndexes(). |