| @@ 231-241 (lines=11) @@ | ||
| 228 | $return = $phonetic->phonetic_matches($searchString, $dataToSearchIn); |
|
| 229 | ||
| 230 | // save into the cache |
|
| 231 | if ( |
|
| 232 | $cacheKey !== null |
|
| 233 | && |
|
| 234 | $useCache === true |
|
| 235 | && |
|
| 236 | $cache instanceof Cache |
|
| 237 | && |
|
| 238 | $cache->getCacheIsReady() === true |
|
| 239 | ) { |
|
| 240 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 241 | } |
|
| 242 | ||
| 243 | return $return; |
|
| 244 | } |
|
| @@ 1028-1038 (lines=11) @@ | ||
| 1025 | $return = $result->fetchAllArray(); |
|
| 1026 | ||
| 1027 | // save into the cache |
|
| 1028 | if ( |
|
| 1029 | $cacheKey !== null |
|
| 1030 | && |
|
| 1031 | $useCache === true |
|
| 1032 | && |
|
| 1033 | $cache instanceof Cache |
|
| 1034 | && |
|
| 1035 | $cache->getCacheIsReady() === true |
|
| 1036 | ) { |
|
| 1037 | $cache->setItem($cacheKey, $return, $cacheTTL); |
|
| 1038 | } |
|
| 1039 | ||
| 1040 | } else { |
|
| 1041 | $return = $result; |
|