| @@ 267-277 (lines=11) @@ | ||
| 264 | $return = $phonetic->phonetic_matches($searchString, $dataToSearchIn); |
|
| 265 | ||
| 266 | // save into the cache |
|
| 267 | if ( |
|
| 268 | $cacheKey !== null |
|
| 269 | && |
|
| 270 | $useCache |
|
| 271 | && |
|
| 272 | $cache instanceof Cache |
|
| 273 | && |
|
| 274 | $cache->getCacheIsReady() |
|
| 275 | ) { |
|
| 276 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 277 | } |
|
| 278 | ||
| 279 | return $return; |
|
| 280 | } |
|
| @@ 1178-1188 (lines=11) @@ | ||
| 1175 | $return = $result->fetchAllArrayyYield(); |
|
| 1176 | ||
| 1177 | // save into the cache |
|
| 1178 | if ( |
|
| 1179 | $cacheKey !== null |
|
| 1180 | && |
|
| 1181 | $useCache |
|
| 1182 | && |
|
| 1183 | $cache instanceof Cache |
|
| 1184 | && |
|
| 1185 | $cache->getCacheIsReady() |
|
| 1186 | ) { |
|
| 1187 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 1188 | } |
|
| 1189 | } else { |
|
| 1190 | $return = $result; |
|
| 1191 | } |
|