| @@ 227-237 (lines=11) @@ | ||
| 224 | $return = $phonetic->phonetic_matches($searchString, $dataToSearchIn); |
|
| 225 | ||
| 226 | // save into the cache |
|
| 227 | if ( |
|
| 228 | $cacheKey !== null |
|
| 229 | && |
|
| 230 | $useCache === true |
|
| 231 | && |
|
| 232 | $cache instanceof Cache |
|
| 233 | && |
|
| 234 | $cache->getCacheIsReady() === true |
|
| 235 | ) { |
|
| 236 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 237 | } |
|
| 238 | ||
| 239 | return $return; |
|
| 240 | } |
|
| @@ 1039-1049 (lines=11) @@ | ||
| 1036 | $return = $result->fetchAllArray(); |
|
| 1037 | ||
| 1038 | // save into the cache |
|
| 1039 | if ( |
|
| 1040 | $cacheKey !== null |
|
| 1041 | && |
|
| 1042 | $useCache === true |
|
| 1043 | && |
|
| 1044 | $cache instanceof Cache |
|
| 1045 | && |
|
| 1046 | $cache->getCacheIsReady() === true |
|
| 1047 | ) { |
|
| 1048 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 1049 | } |
|
| 1050 | ||
| 1051 | } else { |
|
| 1052 | $return = $result; |
|