| @@ 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 | } |
|
| @@ 1034-1044 (lines=11) @@ | ||
| 1031 | $return = $result->fetchAllArray(); |
|
| 1032 | ||
| 1033 | // save into the cache |
|
| 1034 | if ( |
|
| 1035 | $cacheKey !== null |
|
| 1036 | && |
|
| 1037 | $useCache === true |
|
| 1038 | && |
|
| 1039 | $cache instanceof Cache |
|
| 1040 | && |
|
| 1041 | $cache->getCacheIsReady() === true |
|
| 1042 | ) { |
|
| 1043 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 1044 | } |
|
| 1045 | ||
| 1046 | } else { |
|
| 1047 | $return = $result; |
|